lib/redrax/containers.rb
# Removes named key value pairs from the metadata for a specific container
# @param name [String] Name of the container to get metadata from
# @param keys [Array] The list of metadata fields to delete from this 
#   container.
Removes named key value pairs from the metadata for a specific container
Removes named key value pairs from the metadata for a specific container
def delete_metadata(name, *keys)
      validate_path_elements(name)
      client.request(
        method:   :post,
        path:     name,
        expected: 204,
        headers:  MetadataMarshaller.new.call(
          keys.each_with_object({}) { |k, h| h[k] = 1 },
          "X-Remove-Container-Meta-",
          wrong: "X-Container-Meta-"
        )
      )        
    end
def delete_metadata ( name , * keys ) validate_path_elements ( name ) client . request ( method : :post , path : name , expected : 204 , headers : MetadataMarshaller . new . call ( keys . each_with_object ( { } ) { | k , h | h [ k ] = 1 } , "X-Remove-Container-Meta-" , wrong : "X-Container-Meta-" ) ) end
Removes named key value pairs from the metadata for a specific container
Removes named key value pairs from the metadata for a specific container
name
Name of the container to get metadata from
Name of the container to get metadata from
keys
The list of metadata fields to delete from this container.
The list of metadata fields to delete from this container .