Class: BlinkyMonitor::Monitor

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

Instance Method Summary collapse

Constructor Details

#initialize(ci_server, blinky) ⇒ Monitor

Returns a new instance of Monitor.



3
4
5
6
# File 'lib/blinky_monitor/monitor.rb', line 3

def initialize ci_server, blinky
  @ci_server = ci_server
  @blinky = blinky
end

Instance Method Details

#runObject



8
9
10
# File 'lib/blinky_monitor/monitor.rb', line 8

def run
  @blinky.light.send "#{@ci_server.status}!"
end