Class: ContentCaching::Adapter::FsAdapter
- Includes:
- Implementation
- Defined in:
- lib/content_caching/adapters/fs_adapter.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(wrapper, options) ⇒ FsAdapter
constructor
A new instance of FsAdapter.
- #store(content) ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(wrapper, options) ⇒ FsAdapter
Returns a new instance of FsAdapter.
10 11 12 |
# File 'lib/content_caching/adapters/fs_adapter.rb', line 10 def initialize(wrapper, ) super end |
Instance Method Details
#delete ⇒ Object
22 23 24 |
# File 'lib/content_caching/adapters/fs_adapter.rb', line 22 def delete adapter.delete document_path end |
#store(content) ⇒ Object
18 19 20 |
# File 'lib/content_caching/adapters/fs_adapter.rb', line 18 def store content adapter.store document_path, content end |
#url ⇒ Object
14 15 16 |
# File 'lib/content_caching/adapters/fs_adapter.rb', line 14 def url adapter.url document_url end |