Class: Mobius

Inherits:
Object
  • Object
show all
Defined in:
lib/mobius.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, host: nil, version: nil, auth: nil) ⇒ Mobius

Returns a new instance of Mobius.



9
10
11
12
13
14
15
16
17
# File 'lib/mobius.rb', line 9

def initialize(api_key:, host: nil, version: nil, auth: nil)
  requestor = Requestor.new(
    api_key: api_key, host: host, version: version, auth: auth
  )

  @app_store = AppStore.new(requestor)
  @tokens = Tokens.new(requestor)
  @data_marketplace = DataMarketplace.new(requestor)
end

Instance Attribute Details

#app_storeObject (readonly)

Returns the value of attribute app_store.



7
8
9
# File 'lib/mobius.rb', line 7

def app_store
  @app_store
end

#data_marketplaceObject (readonly)

Returns the value of attribute data_marketplace.



7
8
9
# File 'lib/mobius.rb', line 7

def data_marketplace
  @data_marketplace
end

#tokensObject (readonly)

Returns the value of attribute tokens.



7
8
9
# File 'lib/mobius.rb', line 7

def tokens
  @tokens
end