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:



17
18
19
20
# File 'lib/blobby/abstract_store.rb', line 17

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



10
11
12
# File 'lib/blobby/abstract_store.rb', line 10

def available?
  true
end