Class: ContentCaching::Document

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/content_caching.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wrapper) ⇒ Document

Returns a new instance of Document.



36
37
38
# File 'lib/content_caching.rb', line 36

def initialize wrapper
  self.adapter = ContentCaching::Adapter::Base.create(ContentCaching.configuration.adapter, wrapper)
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



34
35
36
# File 'lib/content_caching.rb', line 34

def adapter
  @adapter
end