Class: Aws::S3Interface::S3HttpResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/s3/right_s3_interface.rb

Overview


PARSERS: Non XML

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject (readonly)

:nodoc:



1198
1199
1200
# File 'lib/s3/right_s3_interface.rb', line 1198

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



1204
1205
1206
1207
1208
1209
1210
1211
# File 'lib/s3/right_s3_interface.rb', line 1204

def headers_to_string(headers)
    result = {}
    headers.each do |key, value|
        value       = value[0] if value.is_a?(Array) && value.size<2
        result[key] = value
    end
    result
end

#parse(response) ⇒ Object



1200
1201
1202
# File 'lib/s3/right_s3_interface.rb', line 1200

def parse(response)
    @result = response
end