class Relais

Public Class Methods

new() click to toggle source
# File lib/relais.rb, line 2
def initialize
    @state = false
end

Public Instance Methods

off() click to toggle source
# File lib/relais.rb, line 10
def off
    @state = false
end
on() click to toggle source
# File lib/relais.rb, line 6
def on
    @state = true
end
status() click to toggle source
# File lib/relais.rb, line 14
def status
    return @state
end