Class: ContentCaching::Document
- Inherits:
-
Object
- Object
- ContentCaching::Document
- Extended by:
- Forwardable
- Defined in:
- lib/content_caching.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
Instance Method Summary collapse
-
#initialize(wrapper) ⇒ Document
constructor
A new instance of Document.
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
#adapter ⇒ Object
Returns the value of attribute adapter.
34 35 36 |
# File 'lib/content_caching.rb', line 34 def adapter @adapter end |