Method: Forecast::Adapters::ForecastIoAdapter#hourly
- Defined in:
- lib/forecast/adapters/forecast_io_adapter.rb
#hourly(latitude, longitude) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/forecast/adapters/forecast_io_adapter.rb', line 12 def hourly(latitude, longitude) result = get_json(get_action(latitude, longitude)) forecasts = Forecast::Collection.new result['hourly']['data'].each do |hash| forecasts << get_forecast({latitude: latitude, longitude: longitude}.merge(hash)) end return forecasts end |