class Netatmo::AirCare::HomeCoach
Attributes
health_index[RW]
Public Class Methods
new(data)
click to toggle source
DeviceType: NHC
Calls superclass method
Netatmo::Weather::BaseStation::new
# File lib/netatmo/air_care/home_coach.rb, line 9 def initialize(data) super(data) self.health_index = Netatmo::DashboardData::HealthIndex.new(data['dashboard_data']) end
Public Instance Methods
data()
click to toggle source
Calls superclass method
# File lib/netatmo/air_care/home_coach.rb, line 19 def data d = super d << health_index if health_index? end
name()
click to toggle source
# File lib/netatmo/air_care/home_coach.rb, line 15 def name module_name end