Class: RightAws::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:



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

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



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

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

#parse(response) ⇒ Object



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

def parse(response)
  @result = response
end