Class: Wizrb::Shared::Events::PowerEvent
- Defined in:
- lib/wizrb/shared/events/power_event.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value) ⇒ PowerEvent
constructor
A new instance of PowerEvent.
Methods inherited from Base
Constructor Details
#initialize(value) ⇒ PowerEvent
Returns a new instance of PowerEvent.
9 10 11 12 |
# File 'lib/wizrb/shared/events/power_event.rb', line 9 def initialize(value) validate!(value) super(method: "setPilot", params: {state: value}) end |