Class: Wizrb::Lighting::Events::SetColorTempEvent

Inherits:
Shared::Events::Base show all
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

#params

Instance Method Summary collapse

Methods inherited from Shared::Events::Base

#to_json

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