class Counter::Cache::Counters::BufferCounter::Key
Public Instance Methods
to_s()
click to toggle source
# File lib/counter/cache/counters/buffer_counter/key.rb, line 6 def to_s "cc:#{relation_finder.relation_class.to_s[0..1]}:#{relation_finder.relation_id}:#{column}" end
Protected Instance Methods
column()
click to toggle source
# File lib/counter/cache/counters/buffer_counter/key.rb, line 12 def column options.column.to_s.gsub(/_count/, '') end
relation_finder()
click to toggle source
# File lib/counter/cache/counters/buffer_counter/key.rb, line 16 def relation_finder RelationFinder.new(source_object, options) end