class AzureBlob::Blob

def metadata

Returns the custom Azure metadata tagged on the blob.
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