Class: ContentCaching::Adapter::FsAdapter

Inherits:
Abstract
  • Object
show all
Includes:
Implementation
Defined in:
lib/content_caching/adapters/fs_adapter.rb

Instance Method Summary collapse

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, options)
  super
end

Instance Method Details

#deleteObject



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

#urlObject



14
15
16
# File 'lib/content_caching/adapters/fs_adapter.rb', line 14

def url
  adapter.url document_url
end