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:



1144
1145
1146
# File 'lib/s3/right_s3_interface.rb', line 1144

def result
  @result
end

Instance Method Details

#headers_to_string(headers) ⇒ Object



1148
1149
1150
1151
1152
1153
1154
1155
# File 'lib/s3/right_s3_interface.rb', line 1148

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

#parse(response) ⇒ Object



1145
1146
1147
# File 'lib/s3/right_s3_interface.rb', line 1145

def parse(response)
  @result = response
end