Class: Google::Apis::HomegraphV1::ThermostatFanControlTrait
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::ThermostatFanControlTrait
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb
Overview
This cluster provides fan control capabilities for thermostats.
Instance Attribute Summary collapse
-
#timer_duration ⇒ Fixnum
Corresponds to the JSON property
timerDuration. -
#timer_end ⇒ Fixnum
Corresponds to the JSON property
timerEnd. -
#timer_speed ⇒ String
Corresponds to the JSON property
timerSpeed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThermostatFanControlTrait
constructor
A new instance of ThermostatFanControlTrait.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThermostatFanControlTrait
Returns a new instance of ThermostatFanControlTrait.
1328 1329 1330 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#timer_duration ⇒ Fixnum
Corresponds to the JSON property timerDuration
1316 1317 1318 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1316 def timer_duration @timer_duration end |
#timer_end ⇒ Fixnum
Corresponds to the JSON property timerEnd
1321 1322 1323 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1321 def timer_end @timer_end end |
#timer_speed ⇒ String
Corresponds to the JSON property timerSpeed
1326 1327 1328 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1326 def timer_speed @timer_speed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1333 1334 1335 1336 1337 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1333 def update!(**args) @timer_duration = args[:timer_duration] if args.key?(:timer_duration) @timer_end = args[:timer_end] if args.key?(:timer_end) @timer_speed = args[:timer_speed] if args.key?(:timer_speed) end |