Class: QPush::Web::Apis::Crons

Inherits:
Object
  • Object
show all
Defined in:
lib/qpush/web/apis/crons.rb

Instance Method Summary collapse

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

#callObject



11
12
13
14
# File 'lib/qpush/web/apis/crons.rb', line 11

def call
  retrieve_delays
  filter_crons
end