lib/peddler/xml_response_parser.rb in peddler-1.0.1 vs lib/peddler/xml_response_parser.rb in peddler-1.0.2
- old
+ new
@@ -8,10 +8,12 @@
end
private
def find_data
- results = xml.values.first.find { |k, _| k.include?('Result') }
+ results = xml.values.first.find { |k, _| k.include?('Result') } ||
+ xml.values.first.find { |k, _| k == 'Message' }
+
results ? results.last : nil
end
end
end