Class: QPush::Web::Apis::Stats
- Inherits:
-
Object
- Object
- QPush::Web::Apis::Stats
- Defined in:
- lib/qpush/web/apis/stats.rb
Constant Summary collapse
- DEFAULTS =
{ 'queued' => 0, 'success' => 0, 'failed' => 0, 'performed' => 0, 'dead' => 0, 'retries' => 0, 'delayed' => 0, 'current_queue' => 0, 'percent_success' => 100.00 }.freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize ⇒ Stats
Returns a new instance of Stats.
17 18 19 |
# File 'lib/qpush/web/apis/stats.rb', line 17 def initialize @stats = nil end |
Instance Method Details
#call ⇒ Object
21 22 23 24 25 26 |
# File 'lib/qpush/web/apis/stats.rb', line 21 def call retrieve_stats apply_defaults calculate_stats @stats end |