Module: KNSEmailEndpoint::Storage

Defined in:
lib/kns_email_endpoint/storage/storage.rb,
lib/kns_email_endpoint/storage/file_storage.rb,
lib/kns_email_endpoint/storage/abstract_storage.rb,
lib/kns_email_endpoint/storage/memcache_storage.rb

Defined Under Namespace

Classes: AbstractStorage, FileStorage, MemcacheStorage

Class Method Summary collapse

Class Method Details

.get_storage(engine, settings) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/kns_email_endpoint/storage/storage.rb', line 7

def self.get_storage(engine, settings)
  case engine.to_sym
    when :file then return FileStorage.new(settings)
    when :memcache then return MemcacheStorage.new(settings)
    else return nil
  end
end