lib/s3/right_s3.rb
# Helper to get and URI-decode a header metadata.
# Metadata have to be HTTP encoded (rfc2616) as we use the Amazon S3 REST api
# see http://docs.amazonwebservices.com/AmazonS3/latest/index.html?UsingMetadata.html
Helper to get and URI-decode a header metadata.
Helper to get and URI - decode a header metadata .
def decoded_meta_headers(key = nil)
        if key
          URI.decode(@meta_headers[key.to_s])
        else
          @decoded_meta_headers ||= begin
            metadata = {}
            @meta_headers.each do |key, value|
              metadata[key.to_sym] = URI.decode(value)
            end
            metadata
          end
        end
      end
def decoded_meta_headers ( key = nil ) if key URI . decode ( @meta_headers [ key . to_s ] ) else @decoded_meta_headers ||= begin metadata = { } @meta_headers . each do | key , value | metadata [ key . to_sym ] = URI . decode ( value ) end metadata end end end
Helper to get and URI-decode a header metadata.
Helper to get and URI - decode a header metadata .
# Get one metadata value by its key # Get a hash of all metadata with a decoded value
key
<not_specific>