Class: RightAws::S3Interface::S3HttpResponseParser

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

Overview


PARSERS: Non XML

Direct Known Subclasses

S3HttpResponseBodyParser, S3HttpResponseHeadParser

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) result (readonly)

:nodoc:



1385
1386
1387
# File 'lib/s3/right_s3_interface.rb', line 1385

def result
  @result
end

Instance Method Details

- (Object) headers_to_string(headers)



1389
1390
1391
1392
1393
1394
1395
1396
# File 'lib/s3/right_s3_interface.rb', line 1389

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

- (Object) parse(response)



1386
1387
1388
# File 'lib/s3/right_s3_interface.rb', line 1386

def parse(response)
  @result = response
end