Class: QPush::Web::Apis::Crons
- Inherits:
-
Object
- Object
- QPush::Web::Apis::Crons
- Defined in:
- lib/qpush/web/apis/crons.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(start, count) ⇒ Crons
constructor
A new instance of Crons.
Constructor Details
#initialize(start, count) ⇒ Crons
Returns a new instance of Crons.
5 6 7 8 9 |
# File 'lib/qpush/web/apis/crons.rb', line 5 def initialize(start, count) @jobs = nil @start = start ? start.to_i : 0 @count = count ? count.to_i : 10 end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/qpush/web/apis/crons.rb', line 11 def call retrieve_delays filter_crons end |