Class: Wizrb::Lighting::Events::SetSceneEvent
- Inherits:
-
Shared::Events::Base
- Object
- Shared::Events::Base
- Wizrb::Lighting::Events::SetSceneEvent
- Defined in:
- lib/wizrb/lighting/events/set_scene_event.rb
Instance Attribute Summary
Attributes inherited from Shared::Events::Base
Instance Method Summary collapse
-
#initialize(value) ⇒ SetSceneEvent
constructor
A new instance of SetSceneEvent.
Methods inherited from Shared::Events::Base
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 |