Class: Wizrb::Lighting::Events::SetWarmWhiteEvent

Inherits:
Shared::Events::Base show all
Defined in:
lib/wizrb/lighting/events/set_warm_white_event.rb

Constant Summary collapse

MIN_VALUE =
1
MAX_VALUE =
255

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) ⇒ SetWarmWhiteEvent

Returns a new instance of SetWarmWhiteEvent.



12
13
14
15
# File 'lib/wizrb/lighting/events/set_warm_white_event.rb', line 12

def initialize(value)
  validate!(value)
  super(method: "setState", params: {w: value})
end