lib/ruby_isds/response.rb in ruby_isds-0.12.0 vs lib/ruby_isds/response.rb in ruby_isds-0.13.0
- old
+ new
@@ -5,9 +5,10 @@
def initialize(response)
@response = Hash.from_xml(response.body)
end
def parsed_body
+ raise HtmlResponseReceived, @response.inspect unless @response['Envelope'].present?
@response['Envelope']['Body'][result_key]
end
def result_key
@response['Envelope']['Body'].first[0]