lib/soaspec/exchange_handlers/response_extractor.rb in soaspec-0.2.11 vs lib/soaspec/exchange_handlers/response_extractor.rb in soaspec-0.2.12
- old
+ new
@@ -18,9 +18,10 @@
else
raise "Neither XML nor JSON detected. It is #{type}. Don't know how to parse It is #{response.body}"
end
end
+ # @param [Object] response Response object
# @return [Hash] Hash representing response body
def to_hash(response)
case Interpreter.response_type_for(response)
when :xml then parse_xml(response.body.to_s)
when :json