Class: Wizrb::Lighting::Events::SetSceneEvent

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

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

Returns a new instance of SetSceneEvent.



9
10
11
12
# File 'lib/wizrb/lighting/events/set_scene_event.rb', line 9

def initialize(value)
  validate!(value)
  super(method: "setState", params: {sceneId: Wizrb::Lighting::SCENES[value]})
end