class OpenWeather::Models::OneCall::Weather

Public Class Methods

new(args = nil, options = {}) click to toggle source
Calls superclass method OpenWeather::Models::Model::new
# File lib/open_weather/models/one_call/weather.rb, line 15
def initialize(args = nil, options = {})
  super args, options

  self.current = OpenWeather::Models::OneCall::CurrentWeather.new(current, options) if current
  self.minutely = minutely.map { |i| OpenWeather::Models::OneCall::MinutelyWeather.new(i, options) } if minutely
  self.hourly = hourly.map { |i| OpenWeather::Models::OneCall::HourlyWeather.new(i, options) } if hourly
  self.daily = daily.map { |i| OpenWeather::Models::OneCall::DailyWeather.new(i, options) } if daily
end