Class: SimpleAWS::SimpleAWSParser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/simple_aws/core/connection.rb

Overview

Custom response parser to handle the various craziness of the AWS API

Instance Method Summary collapse

Instance Method Details

#parseObject


40
41
42
43
44
45
46
47
48
# File 'lib/simple_aws/core/connection.rb', line 40

def parse
  if supports_format?
    super
  elsif body && body.start_with?("<?xml")
    xml
  else
    body
  end
end