Class: Blobby::AbstractStore Abstract
- Inherits:
-
Object
- Object
- Blobby::AbstractStore
- Defined in:
- lib/blobby/abstract_store.rb
Overview
This class is abstract.
A store of BLOBs.
Defined Under Namespace
Classes: StoredObject
Instance Method Summary collapse
-
#[](key) ⇒ StoredObject
Access an object in the store.
-
#available? ⇒ Boolean
True if the store is available for use.
Instance Method Details
#[](key) ⇒ StoredObject
Access an object in the store.
19 20 21 22 |
# File 'lib/blobby/abstract_store.rb', line 19 def [](key) KeyConstraint.must_allow!(key) StoredObject.new end |
#available? ⇒ Boolean
Returns true if the store is available for use.
12 13 14 |
# File 'lib/blobby/abstract_store.rb', line 12 def available? true end |