Module: Tellstick::PlainText

Includes:
ProtocolLoader
Defined in:
lib/tellstick/protocol/plain_text.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ProtocolLoader

included

Instance Method Details

#outputObject



31
32
33
# File 'lib/tellstick/protocol/plain_text.rb', line 31

def output
  @output
end

#turn_off(house, unit) ⇒ Object



27
28
29
# File 'lib/tellstick/protocol/plain_text.rb', line 27

def turn_off(house,unit)
  output.puts "Strömbrytare #{house}#{unit} släckt"
end

#turn_on(house, unit) ⇒ Object



23
24
25
# File 'lib/tellstick/protocol/plain_text.rb', line 23

def turn_on(house,unit)
  output.puts "Strömbrytare #{house}#{unit} tänd"
end