Class: Netatmo::Weather::WindGauge
- Inherits:
-
BatteryDevice
- Object
- Device
- BatteryDevice
- Netatmo::Weather::WindGauge
- Defined in:
- lib/netatmo/weather/wind_gauge.rb
Instance Attribute Summary collapse
-
#wind ⇒ Object
Returns the value of attribute wind.
Attributes inherited from BatteryDevice
#battery_percent, #battery_status, #battery_vp
Attributes inherited from Device
#code, #dashboard_data, #data_types, #firmware, #id, #last_message, #last_seen, #last_setup, #module_name, #reachable, #rf_status, #type
Instance Method Summary collapse
-
#initialize(data) ⇒ WindGauge
constructor
DeviceType: NAModule2.
Methods inherited from Device
#battery?, #co2?, #data, #health_index?, #humidity?, #name, #noise?, parse, #pressure?, #rain?, #temperature?, #values, #wind?
Constructor Details
#initialize(data) ⇒ WindGauge
DeviceType: NAModule2
9 10 11 12 13 |
# File 'lib/netatmo/weather/wind_gauge.rb', line 9 def initialize(data) super(data) self.wind = DashboardData::Wind.new(data['dashboard_data']) end |
Instance Attribute Details
#wind ⇒ Object
Returns the value of attribute wind.
6 7 8 |
# File 'lib/netatmo/weather/wind_gauge.rb', line 6 def wind @wind end |