Class: Workers::PeriodicTimer
- Defined in:
- lib/workers/periodic_timer.rb
Instance Attribute Summary
Attributes inherited from Timer
Instance Method Summary collapse
-
#initialize(delay, options = {}, &block) ⇒ PeriodicTimer
constructor
A new instance of PeriodicTimer.
Methods inherited from Timer
#<=>, #cancel, #fire, #overdue?, #reset, #sec_remaining
Methods included from Helpers
#concat_e, #log_debug, #log_error, #log_info, #log_warn
Constructor Details
#initialize(delay, options = {}, &block) ⇒ PeriodicTimer
Returns a new instance of PeriodicTimer.
3 4 5 6 7 8 9 |
# File 'lib/workers/periodic_timer.rb', line 3 def initialize(delay, = {}, &block) [:repeat] = true super(delay, , &block) return nil end |