Class: OpenWeather::Models::Forecast::FiveDay::FiveDay

Inherits:
Model
  • Object
show all
Includes:
Enumerable
Defined in:
lib/open_weather/models/forecast/five_day/five_day.rb

Instance Attribute Summary

Attributes inherited from Model

#options

Instance Method Summary collapse

Methods inherited from Model

#units

Constructor Details

#initialize(args = nil, options = {}) ⇒ FiveDay

Returns a new instance of FiveDay.



15
16
17
18
19
# File 'lib/open_weather/models/forecast/five_day/five_day.rb', line 15

def initialize(args = nil, options = {})
  super args, options

  self.list = list.map { |forecast| Forecast.new(forecast, options) } if list
end