Class: Deimos::Utils::DbPoller::PollStatus
- Inherits:
-
Struct
- Object
- Struct
- Deimos::Utils::DbPoller::PollStatus
- Defined in:
- lib/deimos/utils/db_poller.rb
Instance Attribute Summary collapse
-
#batches_errored ⇒ Object
Returns the value of attribute batches_errored.
-
#batches_processed ⇒ Object
Returns the value of attribute batches_processed.
-
#messages_processed ⇒ Object
Returns the value of attribute messages_processed.
Instance Method Summary collapse
Instance Attribute Details
#batches_errored ⇒ Object
Returns the value of attribute batches_errored
35 36 37 |
# File 'lib/deimos/utils/db_poller.rb', line 35 def batches_errored @batches_errored end |
#batches_processed ⇒ Object
Returns the value of attribute batches_processed
35 36 37 |
# File 'lib/deimos/utils/db_poller.rb', line 35 def batches_processed @batches_processed end |
#messages_processed ⇒ Object
Returns the value of attribute messages_processed
35 36 37 |
# File 'lib/deimos/utils/db_poller.rb', line 35 def @messages_processed end |
Instance Method Details
#current_batch ⇒ Integer
38 39 40 |
# File 'lib/deimos/utils/db_poller.rb', line 38 def current_batch batches_processed + 1 end |
#report ⇒ String
43 44 45 |
# File 'lib/deimos/utils/db_poller.rb', line 43 def report "#{batches_processed} batches, #{batches_errored} errored batches, #{} processed messages" end |