Class: Wizrb::Lighting::Events::SetColorTempEvent
- Inherits:
-
Shared::Events::Base
- Object
- Shared::Events::Base
- Wizrb::Lighting::Events::SetColorTempEvent
- Defined in:
- lib/wizrb/lighting/events/set_color_temp_event.rb
Constant Summary collapse
- MIN_VALUE =
1000- MAX_VALUE =
12_000
Instance Attribute Summary
Attributes inherited from Shared::Events::Base
Instance Method Summary collapse
-
#initialize(value) ⇒ SetColorTempEvent
constructor
A new instance of SetColorTempEvent.
Methods inherited from Shared::Events::Base
Constructor Details
#initialize(value) ⇒ SetColorTempEvent
12 13 14 15 |
# File 'lib/wizrb/lighting/events/set_color_temp_event.rb', line 12 def initialize(value) validate!(value) super(method: "setState", params: {temp: value}) end |