Class: BlinkyMonitor::Monitor
- Inherits:
-
Object
- Object
- BlinkyMonitor::Monitor
- Defined in:
- lib/blinky_monitor/monitor.rb
Instance Method Summary collapse
-
#initialize(ci_server, blinky) ⇒ Monitor
constructor
A new instance of Monitor.
- #run ⇒ Object
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
#run ⇒ Object
8 9 10 |
# File 'lib/blinky_monitor/monitor.rb', line 8 def run @blinky.light.send "#{@ci_server.status}!" end |