Class: MrMime::Store
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- MrMime::Store
- Defined in:
- app/models/mr_mime/store.rb
Constant Summary collapse
- PREFIX =
'mr_mime'
Instance Method Summary collapse
Instance Method Details
#get(key) ⇒ Object
13 14 15 |
# File 'app/models/mr_mime/store.rb', line 13 def get(key) self["#{PREFIX}.#{key}"] end |
#set(key, value) ⇒ Object
9 10 11 |
# File 'app/models/mr_mime/store.rb', line 9 def set(key, value) self["#{PREFIX}.#{key}"] = value end |
#set_keys(values = {}) ⇒ Object
5 6 7 |
# File 'app/models/mr_mime/store.rb', line 5 def set_keys(values = {}) values.each{ |k,v| set(k, v) } end |