lib/gooddata/models/client.rb
def create(data, options)
        segment = options[:segment]
        domain = segment.domain
        tenant = client.create(GoodData::Client, GoodData::Helpers.stringify_keys(CLIENT_TEMPLATE.merge(domain: domain)), domain: domain)
        tenant.tap do |s|
          s.project = data[:project]
          s.client_id = data[:id]
          s.segment = segment.uri
        end
      end
# Creates new client from parameters passed.
#
# Should not be called directly. Use GoodData::Segment#create_client.
#
# @param data [Hash] Data required to create the client
# @option data id [String]
# @option data project [GoodData::Project]
# @param options [Hash] Options
# @option options segment [GoodData::Segment]
# @option options client [GoodData::Rest::Client]
# @return [GoodData::Client] New GoodData::Client instance
Creates new client from parameters passed.
Should not be called directly.
Creates new client from parameters passed . Should not be called directly .
def create(data, options)
        segment = options[:segment]
        domain = segment.domain
        tenant = client.create(GoodData::Client, GoodData::Helpers.stringify_keys(CLIENT_TEMPLATE.merge(domain: domain)), domain: domain)
        tenant.tap do |s|
          s.project = data[:project]
          s.client_id = data[:id]
          s.segment = segment.uri
        end
      end
def create ( data , options ) segment = options [ :segment ] domain = segment . domain tenant = client . create ( GoodData :: Client , GoodData :: Helpers . stringify_keys ( CLIENT_TEMPLATE . merge ( domain : domain ) ) , domain : domain ) tenant . tap do | s | s . project = data [ :project ] s . client_id = data [ :id ] s . segment = segment . uri end end
Creates new client from parameters passed.
Creates new client from parameters passed .
New GoodData::Client instance
New GoodData :: Client instance
GoodData::Client
data
None
options
None