Class: Cache::Object::InstanceDecorator

Inherits:
Struct
  • Object
show all
Defined in:
lib/cache/object/instance_decorator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instanceObject

Returns the value of attribute instance

Returns:

  • (Object)

    the current value of instance



3
4
5
# File 'lib/cache/object/instance_decorator.rb', line 3

def instance
  @instance
end

#mappingsObject

Returns the value of attribute mappings

Returns:

  • (Object)

    the current value of mappings



3
4
5
# File 'lib/cache/object/instance_decorator.rb', line 3

def mappings
  @mappings
end

Instance Method Details

#keysObject



4
5
6
# File 'lib/cache/object/instance_decorator.rb', line 4

def keys
  [canonical_cache_key] + mapping_cache_keys
end