Class: AralyneOwm::Config
- Inherits:
-
Object
- Object
- AralyneOwm::Config
- Defined in:
- lib/aralyne_owm/config.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(city_id, endpoint, api_key) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(city_id, endpoint, api_key) ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 9 |
# File 'lib/aralyne_owm/config.rb', line 4 def initialize(city_id, endpoint, api_key) @api_key = api_key @city_id = city_id @endpoint = endpoint @api_response = HTTParty.get(uri) end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/aralyne_owm/config.rb', line 11 def call @api_response end |