Class: BucketClient::Bucket

Inherits:
Object
  • Object
show all
Includes:
KeyMethod, UriMethod
Defined in:
lib/bucket_client/bucket.rb

Instance Method Summary collapse

Methods included from KeyMethod

#create_blob, #create_blob!, #delete_blob, #delete_blob!, #delete_blob_if_exist, #delete_blob_if_exist!, #exist_blob, #get_blob, #get_blob!, #put_blob, #put_blob!, #update_blob, #update_blob!

Methods included from UriMethod

#delete_blob_if_exist_with_uri, #delete_blob_if_exist_with_uri!, #delete_blob_with_uri, #delete_blob_with_uri!, #exist_blob_with_uri, #get_blob_with_uri, #get_blob_with_uri!, #put_blob_with_uri, #put_blob_with_uri!, #update_blob_with_uri, #update_blob_with_uri!

Instance Method Details

#get_uri(key) ⇒ String

Obtains the URI of the blob from key of the blob Does not raise exception even if blob does not exist

uri = bucket.get_uri(“image.png”) #=>

Parameters:

  • key (String)

    the blob id or name

Returns:

  • (String)


384
385
386
# File 'lib/bucket_client/bucket.rb', line 384

def get_uri(key)
	raise NotImplementedError key
end