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