Class: NewRemote::GroupCommand
- Inherits:
-
Object
- Object
- NewRemote::GroupCommand
- Defined in:
- lib/new_remote.rb
Instance Method Summary collapse
- #dim(level) ⇒ Object
-
#initialize(transmitter) ⇒ GroupCommand
constructor
A new instance of GroupCommand.
- #off ⇒ Object
- #on ⇒ Object
Constructor Details
#initialize(transmitter) ⇒ GroupCommand
Returns a new instance of GroupCommand.
27 28 29 |
# File 'lib/new_remote.rb', line 27 def initialize(transmitter) @transmitter = transmitter end |
Instance Method Details
#dim(level) ⇒ Object
39 40 41 |
# File 'lib/new_remote.rb', line 39 def dim(level) @transmitter.send_group_dim(level) end |
#off ⇒ Object
35 36 37 |
# File 'lib/new_remote.rb', line 35 def off @transmitter.send_group(false) end |
#on ⇒ Object
31 32 33 |
# File 'lib/new_remote.rb', line 31 def on @transmitter.send_group(true) end |