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:



1243
1244
1245
# File 'lib/s3/s3_interface.rb', line 1243

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



1249
1250
1251
1252
1253
1254
1255
1256
# File 'lib/s3/s3_interface.rb', line 1249

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



1245
1246
1247
# File 'lib/s3/s3_interface.rb', line 1245

def parse(response)
  @result = response
end