Class: OpenWeather::Models::Stations::Measurement
- Defined in:
- lib/open_weather/models/stations/measurement.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(args = nil, options = {}) ⇒ Measurement
constructor
A new instance of Measurement.
Methods inherited from Model
Constructor Details
#initialize(args = nil, options = {}) ⇒ Measurement
Returns a new instance of Measurement.
16 17 18 19 20 21 22 23 |
# File 'lib/open_weather/models/stations/measurement.rb', line 16 def initialize(args = nil, = {}) super args, self.temp = OpenWeather::Models::Stations::Temp.new(temp, ) if temp self.humidity = OpenWeather::Models::Stations::Humidity.new(humidity, ) if humidity self.pressure = OpenWeather::Models::Stations::Pressure.new(pressure, ) if pressure self.precipitation = OpenWeather::Models::Stations::Precipitation.new(precipitation, ) if precipitation end |