Class: OpenWeather::Models::Forecast::ThirtyDay::ThirtyDay
- Inherits:
-
Model
- Object
- Hashie::Trash
- Model
- OpenWeather::Models::Forecast::ThirtyDay::ThirtyDay
- Includes:
- Enumerable
- Defined in:
- lib/open_weather/models/forecast/thirty_day/thirty_day.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(args = nil, options = {}) ⇒ ThirtyDay
constructor
A new instance of ThirtyDay.
Methods inherited from Model
Constructor Details
#initialize(args = nil, options = {}) ⇒ ThirtyDay
Returns a new instance of ThirtyDay.
16 17 18 19 20 21 |
# File 'lib/open_weather/models/forecast/thirty_day/thirty_day.rb', line 16 def initialize(args = nil, = {}) super args, self.list = list.map { |forecast| Forecast.new(forecast, ) } if list self.city = OpenWeather::Models::Forecast::City.new(city, ) if city end |