Class: Bosh::Blobstore::NullBlobstoreClient
- Inherits:
-
Object
- Object
- Bosh::Blobstore::NullBlobstoreClient
- Defined in:
- lib/blobstore_client/null_blobstore_client.rb
Instance Method Summary collapse
- #create(contents, id = nil) ⇒ Object
- #delete(oid) ⇒ Object
- #exists?(oid) ⇒ Boolean
- #get(id, file = nil, options = nil) ⇒ Object
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
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
9 10 11 |
# File 'lib/blobstore_client/null_blobstore_client.rb', line 9 def get(id, file = nil, = nil) raise NotFound, "Blobstore object '#{id}' not found" end |