Module: Boom::Storage
- Defined in:
- lib/boom/storage.rb,
lib/boom/storage/base.rb,
lib/boom/storage/json.rb,
lib/boom/storage/redis.rb,
lib/boom/storage/mongodb.rb
Defined Under Namespace
Classes: Base, Json, MongoDB, Redis
Class Method Summary
collapse
Class Method Details
.backend ⇒ Object
17
18
19
|
# File 'lib/boom/storage.rb', line 17
def self.backend
Boom::Storage.const_get(Boom.config.attributes['backend'].capitalize).new
end
|
.backend=(backend) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/boom/storage.rb', line 10
def self.backend=(backend)
backend = backend.capitalize
Boom::Storage.const_get(backend)
Boom.config.attributes['backend'] = backend.downcase
Boom.config.save
end
|