Method: HashBack::Resource::ClassMethods#fetch
- Defined in:
- lib/hashback/resource.rb
#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 |