class OpenWeather::Models::City::Weather
Public Class Methods
new(args = nil, options = {})
click to toggle source
Calls superclass method
# File lib/open_weather/models/city/weather.rb, line 23 def initialize(args = nil, options = {}) super args, options self.coord = OpenWeather::Models::Coord.new(coord, options) if coord self.weather = weather.map { |i| OpenWeather::Models::Weather.new(i, options) } if weather self.main = OpenWeather::Models::Main.new(main, options) if main self.wind = OpenWeather::Models::Wind.new(wind, options) if wind self.clouds = OpenWeather::Models::Clouds.new(clouds, options) if clouds self.rain = OpenWeather::Models::Rain.new(rain, options) if rain self.snow = OpenWeather::Models::Snow.new(snow, options) if snow self.sys = OpenWeather::Models::Sys.new(sys, options) if sys end