Class: Aws::S3Interface::S3HttpResponseParser

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

Overview


PARSERS: Non XML

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject (readonly)

:nodoc:



1233
1234
1235
# File 'lib/s3/s3_interface.rb', line 1233

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/s3/s3_interface.rb', line 1239

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



1235
1236
1237
# File 'lib/s3/s3_interface.rb', line 1235

def parse(response)
  @result = response
end