class AzureBlob::Container

AzureBlob::Container holds the metadata for a given Container.

def initialize(response)

HEAD or GET request to a container uri.
Expects a Net::HTTPResponse object from a

but obtain one when calling relevant methods of AzureBlob::Client.
You should not instanciate this object directly,
def initialize(response)
  @response = response
end

def metadata

Returns the custom Azure metadata tagged on the container.
def metadata
  @metadata || response
    .to_hash
    .select { |key, _| key.start_with?("x-ms-meta") }
    .transform_values(&:first)
    .transform_keys { |key| key.delete_prefix("x-ms-meta-").to_sym }
end

def present?

def present?
  response.code == "200"
end