Sha256: 4b1241d70c40b424e0f0e79dad712c3064a062f078d7ed12b68222bb3a698d8b
Contents?: true
Size: 651 Bytes
Versions: 56
Compression:
Stored size: 651 Bytes
Contents
module AWS class Response # 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. def self.parse(options = {}) options = { :xml => "", :parse_options => { 'forcearray' => ['item', 'member'], 'suppressempty' => nil, 'keeproot' => false } }.merge(options) response = XmlSimple.xml_in(options[:xml], options[:parse_options]) end end # class Response end # module AWS
Version data entries
56 entries across 56 versions & 5 rubygems