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
41 42 43 |
# File 'lib/deimos/utils/db_poller.rb', line 41 def batches_errored @batches_errored end |
#batches_processed ⇒ Object
Returns the value of attribute batches_processed
41 42 43 |
# File 'lib/deimos/utils/db_poller.rb', line 41 def batches_processed @batches_processed end |
#messages_processed ⇒ Object
Returns the value of attribute messages_processed
41 42 43 |
# File 'lib/deimos/utils/db_poller.rb', line 41 def @messages_processed end |
Instance Method Details
#current_batch ⇒ Integer
44 45 46 |
# File 'lib/deimos/utils/db_poller.rb', line 44 def current_batch batches_processed + 1 end |
#report ⇒ String
49 50 51 |
# File 'lib/deimos/utils/db_poller.rb', line 49 def report "#{batches_processed} batches, #{batches_errored} errored batches, #{} processed messages" end |