Class: NewRemote::GroupCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/new_remote.rb

Instance Method Summary collapse

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

#offObject



35
36
37
# File 'lib/new_remote.rb', line 35

def off
  @transmitter.send_group(false)
end

#onObject



31
32
33
# File 'lib/new_remote.rb', line 31

def on
  @transmitter.send_group(true)
end