Module: Tellstick::Proove
- Includes:
- ProtocolLoader
- Defined in:
- lib/tellstick/protocol/proove.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ProtocolLoader
Instance Method Details
#output ⇒ Object
43 44 45 |
# File 'lib/tellstick/protocol/proove.rb', line 43 def output @output end |
#teach(*args) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/tellstick/protocol/proove.rb', line 34 def teach(*args) args += [true,2] (1..5).each do @output.puts build_command_string(*Proove::preprocess_build_command_args(*args)) @output.gets sleep 0.2 end end |
#turn_off(*args) ⇒ Object
29 30 31 32 |
# File 'lib/tellstick/protocol/proove.rb', line 29 def turn_off(*args) args << false output.puts build_command_string(*Proove::preprocess_build_command_args(*args)) end |
#turn_on(*args) ⇒ Object
24 25 26 27 |
# File 'lib/tellstick/protocol/proove.rb', line 24 def turn_on(*args) args << true output.puts build_command_string(*Proove::preprocess_build_command_args(*args)) end |