Class: Coconut::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



13
14
15
16
17
# File 'lib/coconut/client.rb', line 13

def initialize(options={})
  @api_key = options[:api_key]
  @region = options[:region]
  @endpoint = options[:endpoint]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



11
12
13
# File 'lib/coconut/client.rb', line 11

def api_key
  @api_key
end

#endpointObject

Returns the value of attribute endpoint.



11
12
13
# File 'lib/coconut/client.rb', line 11

def endpoint
  @endpoint
end

#regionObject

Returns the value of attribute region.



11
12
13
# File 'lib/coconut/client.rb', line 11

def region
  @region
end