Module: HashBack::Resource::ClassMethods

Defined in:
lib/hashback/resource.rb

Instance Method Summary collapse

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