Class: Blobby::FakeSuccessStore

Inherits:
Object
  • Object
show all
Defined in:
lib/blobby/fake_success_store.rb

Overview

A BLOB store that is always successful.

Defined Under Namespace

Classes: StoredObject

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



15
16
17
18
# File 'lib/blobby/fake_success_store.rb', line 15

def [](key)
  KeyConstraint.must_allow!(key)
  StoredObject.new
end

#available?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/blobby/fake_success_store.rb', line 11

def available?
  true
end