Class: Coconut::Client
- Inherits:
-
Object
- Object
- Coconut::Client
- Defined in:
- lib/coconut/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
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(={}) @api_key = [:api_key] @region = [:region] @endpoint = [:endpoint] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/coconut/client.rb', line 11 def api_key @api_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
11 12 13 |
# File 'lib/coconut/client.rb', line 11 def endpoint @endpoint end |
#region ⇒ Object
Returns the value of attribute region.
11 12 13 |
# File 'lib/coconut/client.rb', line 11 def region @region end |