Class: Counter::Cache::Counters::BufferCounter::Enqueuer
- Inherits:
-
Struct
- Object
- Struct
- Counter::Cache::Counters::BufferCounter::Enqueuer
- Defined in:
- lib/counter/cache/counters/buffer_counter/enqueuer.rb
Instance Attribute Summary collapse
-
#counter_class_name ⇒ Object
Returns the value of attribute counter_class_name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#relation_class ⇒ Object
Returns the value of attribute relation_class.
-
#relation_id ⇒ Object
Returns the value of attribute relation_id.
-
#source_object_class_name ⇒ Object
Returns the value of attribute source_object_class_name.
Instance Method Summary collapse
Instance Attribute Details
#counter_class_name ⇒ Object
Returns the value of attribute counter_class_name
5 6 7 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 5 def counter_class_name @counter_class_name end |
#options ⇒ Object
Returns the value of attribute options
5 6 7 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 5 def @options end |
#relation_class ⇒ Object
Returns the value of attribute relation_class
5 6 7 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 5 def relation_class @relation_class end |
#relation_id ⇒ Object
Returns the value of attribute relation_id
5 6 7 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 5 def relation_id @relation_id end |
#source_object_class_name ⇒ Object
Returns the value of attribute source_object_class_name
5 6 7 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 5 def source_object_class_name @source_object_class_name end |
Instance Method Details
#enqueue!(source_object) ⇒ Object
6 7 8 9 |
# File 'lib/counter/cache/counters/buffer_counter/enqueuer.rb', line 6 def enqueue!(source_object) create_and_enqueue(.wait(source_object), .cached?) create_and_enqueue(.recalculation_delay, false) if .recalculation? end |