Class: Google::Apis::HomegraphV1::ThermostatFanControlTrait

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_durationFixnum

Corresponds to the JSON property timerDuration

Returns:

  • (Fixnum)


1316
1317
1318
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1316

def timer_duration
  @timer_duration
end

#timer_endFixnum

Corresponds to the JSON property timerEnd

Returns:

  • (Fixnum)


1321
1322
1323
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1321

def timer_end
  @timer_end
end

#timer_speedString

Corresponds to the JSON property timerSpeed

Returns:

  • (String)


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