Module: HashBack::Resource::ClassMethods
- Defined in:
- lib/hashback/resource.rb
Instance Method Summary collapse
-
#fetch(key) ⇒ Object
Fetches the object identified by
keyfrom the storage backend.
Instance Method Details
#fetch(key) ⇒ Object
Fetches the object identified by key from the storage backend.
51 52 53 54 |
# File 'lib/hashback/resource.rb', line 51 def fetch(key) backend = self.__send__(:class_variable_get, :@@_backend) backend[key] end |