Module: OpenWeather::Endpoints::FiveDayForecast
- Included in:
- Client
- Defined in:
- lib/open_weather/endpoints/five_day_forecast.rb
Instance Method Summary collapse
Instance Method Details
#five_day_forecast(lat, lon = nil, options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/open_weather/endpoints/five_day_forecast.rb', line 6 def five_day_forecast(lat, lon = nil, = {}) = lat.is_a?(Hash) ? .merge(lat) : .merge(lat: lat, lon: lon) OpenWeather::Models::Forecast::FiveDay::FiveDay.new(get('2.5/forecast', ), ) end |