Class: Sr71::Ticker
- Inherits:
-
Object
- Object
- Sr71::Ticker
- Defined in:
- lib/sr71/ticker.rb
Class Method Summary collapse
Class Method Details
.start! ⇒ Object
3 4 5 |
# File 'lib/sr71/ticker.rb', line 3 def self.start! @timer = EM::PeriodicTimer.new(0.1, method(:tick)) end |
.tick ⇒ Object
7 8 9 10 11 |
# File 'lib/sr71/ticker.rb', line 7 def self.tick Sr71.services.each do |service| service.start_check if service.needs_check? end end |