Class: Ambient::ClientConfiguration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, app_key:, api_url:) ⇒ ClientConfiguration

Creates a new Ambient Client

Parameters:

  • api_key (String)

    the configuration for the Ambient client.



11
12
13
14
15
# File 'lib/ambient/client_config.rb', line 11

def initialize(api_key:, app_key:, api_url:)
  @api_key = api_key
  @app_key = app_key
  @api_url = api_url
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



5
6
7
# File 'lib/ambient/client_config.rb', line 5

def api_key
  @api_key
end

#api_urlObject (readonly)

Returns the value of attribute api_url.



5
6
7
# File 'lib/ambient/client_config.rb', line 5

def api_url
  @api_url
end

#app_keyObject (readonly)

Returns the value of attribute app_key.



5
6
7
# File 'lib/ambient/client_config.rb', line 5

def app_key
  @app_key
end