| Class | AWS::Response |
| In: |
lib/AWS/responses.rb
|
| Parent: | Object |
Parse the XML response from AWS
@option options [String] :xml The XML response from AWS that we want to parse @option options [Hash] :parse_options Override the options for XmlSimple. @return [Hash] the input :xml converted to a custom Ruby Hash by XmlSimple.
# File lib/AWS/responses.rb, line 10
10: def self.parse(options = {})
11: options = {
12: :xml => "",
13: :parse_options => { 'forcearray' => ['item', 'member'], 'suppressempty' => nil, 'keeproot' => false }
14: }.merge(options)
15: response = XmlSimple.xml_in(options[:xml], options[:parse_options])
16: end