class ContentCaching::Adapter::Base
Public Class Methods
create(adapter_infos, wrapper)
click to toggle source
# File lib/content_caching/adapters/base.rb, line 7 def self.create(adapter_infos, wrapper) adapter_type = adapter_infos[:adapter] options = adapter_infos[:options] load "content_caching/adapters/#{adapter_type}_adapter.rb" ContentCaching::Adapter.const_get(klass_adapter(adapter_type)).new(wrapper, options) end
Private Class Methods
klass_adapter(adapter_symbol)
click to toggle source
# File lib/content_caching/adapters/base.rb, line 17 def self.klass_adapter adapter_symbol case adapter_symbol when :fs then :FsAdapter when :aws then :AwsAdapter else raise UnsupportedAdapter.new end end