class Counter::Cache::Counters::BufferCounter

Attributes

options[RW]
source_object[RW]

Public Class Methods

new(source_object, options) click to toggle source
# File lib/counter/cache/counters/buffer_counter.rb, line 10
def initialize(source_object, options)
  @options = Counter::Cache::OptionsParser.new(options)
  @source_object = source_object
end

Public Instance Methods

save!(&block) click to toggle source
# File lib/counter/cache/counters/buffer_counter.rb, line 19
def save!(&block)
  Saver.new(options).save!(&block)
end
update(direction) click to toggle source
# File lib/counter/cache/counters/buffer_counter.rb, line 15
def update(direction)
  Updater.new(source_object, options, self.class.name).update!(direction)
end