Method: AzureClient::Container#get_blob

Defined in:
lib/azure_client/container.rb

#get_blob(blob_name, options = {}, retry_policy = @retry_policy) ⇒ Object

throws exception if no blob found



19
20
21
22
23
24
# File 'lib/azure_client/container.rb', line 19

def get_blob(blob_name, options = {}, retry_policy = @retry_policy) 
  retry_policy.retry {
    azure_blob, content = @blob_service.get_blob(name, blob_name, options)
    Blob.new(blob_name, azure_blob, content, name, @blob_service, @retry_policy)
  }
end