lib/trebbianno/response.rb in trebbianno-ruby-api-0.0.3 vs lib/trebbianno/response.rb in trebbianno-ruby-api-0.0.4

- old
+ new

@@ -17,10 +17,11 @@ # @response.parsed["#{@type}_response"]["#{@type}_result"][:status] == '0001' true end def parse_response(xml_response) - return nil if xml_response.blank? + blank = xml_response.respond_to?(:empty?) ? !!xml_response.empty? : !xml_response + return nil if blank XmlSimple.xml_in(xml_response) end end end