Class: Relais

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

Instance Method Summary collapse

Constructor Details

#initializeRelais

Returns a new instance of Relais.



2
3
4
# File 'lib/relais.rb', line 2

def initialize
    @state = false
end

Instance Method Details

#offObject



10
11
12
# File 'lib/relais.rb', line 10

def off
    @state = false
end

#onObject



6
7
8
# File 'lib/relais.rb', line 6

def on
    @state = true
end

#statusObject



14
15
16
# File 'lib/relais.rb', line 14

def status
    return @state
end