class Netatmo::Weather::OutdoorModule

Attributes

humidity[RW]
pressure[RW]
temperature[RW]

Public Class Methods

new(data) click to toggle source

DeviceType: NAModule1

Calls superclass method Netatmo::Weather::BatteryDevice::new
# File lib/netatmo/weather/outdoor_module.rb, line 9
def initialize(data)
  super(data)

  self.humidity = DashboardData::Humidity.new(data['dashboard_data'])
  self.temperature = DashboardData::Temperature.new(data['dashboard_data'])
  self.pressure = DashboardData::Pressure.new(data['dashboard_data']) if pressure?
end