Class: Sidekiq::Stats::History
- Inherits:
-
Object
- Object
- Sidekiq::Stats::History
- Defined in:
- lib/sidekiq/api.rb
Instance Method Summary collapse
- #failed ⇒ Object
-
#initialize(days_previous, start_date = nil) ⇒ History
constructor
A new instance of History.
- #processed ⇒ Object
Constructor Details
#initialize(days_previous, start_date = nil) ⇒ History
Returns a new instance of History.
142 143 144 145 |
# File 'lib/sidekiq/api.rb', line 142 def initialize(days_previous, start_date = nil) @days_previous = days_previous @start_date = start_date || Time.now.utc.to_date end |
Instance Method Details
#failed ⇒ Object
151 152 153 |
# File 'lib/sidekiq/api.rb', line 151 def failed @failed ||= date_stat_hash("failed") end |
#processed ⇒ Object
147 148 149 |
# File 'lib/sidekiq/api.rb', line 147 def processed @processed ||= date_stat_hash("processed") end |