Class: Place::Client
- Inherits:
-
Object
- Object
- Place::Client
- Defined in:
- lib/place/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
Instance Method Summary collapse
-
#initialize(api_key: nil, api_url: nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key: nil, api_url: nil) ⇒ Client
Returns a new instance of Client.
6 7 8 9 |
# File 'lib/place/client.rb', line 6 def initialize(api_key: nil, api_url: nil) @api_key = api_key @api_url = api_url end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/place/client.rb', line 4 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
4 5 6 |
# File 'lib/place/client.rb', line 4 def api_url @api_url end |