Class: CountPublisher
- Inherits:
-
Object
- Object
- CountPublisher
- Defined in:
- lib/count_publisher.rb
Constant Summary collapse
- INCREMENT_SIZE =
1000
Instance Method Summary collapse
- #callbacks ⇒ Object
-
#initialize(redis_row_count) ⇒ CountPublisher
constructor
A new instance of CountPublisher.
Constructor Details
#initialize(redis_row_count) ⇒ CountPublisher
Returns a new instance of CountPublisher.
4 5 6 7 |
# File 'lib/count_publisher.rb', line 4 def initialize(redis_row_count) @redis_row_count = redis_row_count @redis = Redis.current end |
Instance Method Details
#callbacks ⇒ Object
9 10 11 |
# File 'lib/count_publisher.rb', line 9 def callbacks { during_execute: publish_ongoing, after_execute: expire_count } end |