Class: Counter::Cache::Counters::BufferCounter::Key

Inherits:
Struct
  • Object
show all
Defined in:
lib/counter/cache/counters/buffer_counter/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



5
6
7
# File 'lib/counter/cache/counters/buffer_counter/key.rb', line 5

def options
  @options
end

#source_objectObject

Returns the value of attribute source_object

Returns:

  • (Object)

    the current value of source_object



5
6
7
# File 'lib/counter/cache/counters/buffer_counter/key.rb', line 5

def source_object
  @source_object
end

Instance Method Details

#to_sObject



6
7
8
# 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