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:



1204
1205
1206
# File 'lib/s3/right_s3_interface.rb', line 1204

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



1210
1211
1212
1213
1214
1215
1216
1217
# File 'lib/s3/right_s3_interface.rb', line 1210

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



1206
1207
1208
# File 'lib/s3/right_s3_interface.rb', line 1206

def parse(response)
    @result = response
end