Class: Workers::PeriodicTimer

Inherits:
Timer
  • Object
show all
Defined in:
lib/workers/periodic_timer.rb

Instance Attribute Summary

Attributes inherited from Timer

#delay, #repeat

Instance Method Summary collapse

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, options = {}, &block)
  options[:repeat] = true

  super(delay, options, &block)

  nil
end