Class: Pixo::Rpc::SetLedsOn
- Inherits:
-
Object
- Object
- Pixo::Rpc::SetLedsOn
- Defined in:
- lib/pixo/rpc/request_types.rb
Instance Method Summary collapse
- #call(service) ⇒ Object
-
#initialize(leds_on) ⇒ SetLedsOn
constructor
A new instance of SetLedsOn.
Constructor Details
#initialize(leds_on) ⇒ SetLedsOn
Returns a new instance of SetLedsOn.
106 107 108 |
# File 'lib/pixo/rpc/request_types.rb', line 106 def initialize(leds_on) @leds_on = leds_on end |
Instance Method Details
#call(service) ⇒ Object
110 111 112 |
# File 'lib/pixo/rpc/request_types.rb', line 110 def call(service) service.application.leds_on = @leds_on end |