Class: Wizrb::Shared::Events::PowerEvent

Inherits:
Base
  • Object
show all
Defined in:
lib/wizrb/shared/events/power_event.rb

Instance Attribute Summary

Attributes inherited from Base

#params

Instance Method Summary collapse

Methods inherited from Base

#to_json

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