class ContentCaching::Adapter::AwsAdapter

Public Class Methods

new(wrapper, options) click to toggle source
Calls superclass method ContentCaching::Adapter::Abstract::new
# File lib/content_caching/adapters/aws_adapter.rb, line 10
def initialize(wrapper, options)
  super
end

Public Instance Methods

delete() click to toggle source
# File lib/content_caching/adapters/aws_adapter.rb, line 22
def delete
  adapter.delete document_path
end
store(content) click to toggle source
# File lib/content_caching/adapters/aws_adapter.rb, line 18
def store content
  adapter.store document_path, content
end
url() click to toggle source
# File lib/content_caching/adapters/aws_adapter.rb, line 14
def url
  adapter.url document_path
end

Private Instance Methods

adapter() click to toggle source
# File lib/content_caching/adapters/aws_adapter.rb, line 28
def adapter
  @adapter ||= Aws::new(@options)
end