Class: Blobby::AbstractStore Abstract

Inherits:
Object
  • Object
show all
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

Instance Method Details

#[](key) ⇒ StoredObject

Access an object in the store.

Parameters:

  • key (String)

    object address

Returns:



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.

Returns:

  • (Boolean)

    true if the store is available for use



12
13
14
# File 'lib/blobby/abstract_store.rb', line 12

def available?
  true
end