Class: Bosh::Blobstore::NullBlobstoreClient

Inherits:
Object
  • Object
show all
Defined in:
lib/blobstore_client/null_blobstore_client.rb

Instance Method Summary collapse

Instance Method Details

#create(contents, id = nil) ⇒ Object



5
6
7
# File 'lib/blobstore_client/null_blobstore_client.rb', line 5

def create(contents, id = nil)
  SecureRandom.uuid
end

#delete(oid) ⇒ Object



13
14
# File 'lib/blobstore_client/null_blobstore_client.rb', line 13

def delete(oid)
end

#exists?(oid) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/blobstore_client/null_blobstore_client.rb', line 16

def exists?(oid)
  false
end

#get(id, file = nil, options = nil) ⇒ Object

Raises:



9
10
11
# File 'lib/blobstore_client/null_blobstore_client.rb', line 9

def get(id, file = nil, options = nil)
  raise NotFound, "Blobstore object '#{id}' not found"
end