Class: Counter::Cache::Counters::BufferCounter
- Inherits:
-
Object
- Object
- Counter::Cache::Counters::BufferCounter
- Defined in:
- lib/counter/cache/counters/buffer_counter.rb,
lib/counter/cache/counters/buffer_counter/key.rb,
lib/counter/cache/counters/buffer_counter/saver.rb,
lib/counter/cache/counters/buffer_counter/updater.rb,
lib/counter/cache/counters/buffer_counter/enqueuer.rb,
lib/counter/cache/counters/buffer_counter/relation_finder.rb
Defined Under Namespace
Classes: Enqueuer, Key, RelationFinder, Saver, Updater
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#source_object ⇒ Object
Returns the value of attribute source_object.
Instance Method Summary collapse
-
#initialize(source_object, options) ⇒ BufferCounter
constructor
A new instance of BufferCounter.
- #save!(&block) ⇒ Object
- #update(direction) ⇒ Object
Constructor Details
#initialize(source_object, options) ⇒ BufferCounter
Returns a new instance of BufferCounter.
10 11 12 13 |
# File 'lib/counter/cache/counters/buffer_counter.rb', line 10 def initialize(source_object, ) @options = Counter::Cache::OptionsParser.new() @source_object = source_object end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/counter/cache/counters/buffer_counter.rb', line 8 def @options end |
#source_object ⇒ Object
Returns the value of attribute source_object.
8 9 10 |
# File 'lib/counter/cache/counters/buffer_counter.rb', line 8 def source_object @source_object end |