Sha256: ed47f2ff2fd52115fadec15f47e3cef599bda74bda7fe421e285e0fdee59c0ea
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
module Exlibris module Primo module WebService module Response class Base include Abstract include Error include Namespaces include Util include XmlUtil self.abstract = true attr_reader :savon_response, :soap_action, :code, :body protected :savon_response, :soap_action def initialize savon_response, soap_action super @savon_response = savon_response @code = savon_response.http.code @body = savon_response.http.body @soap_action = soap_action # Since there seem to be a problem parsing strings with unescaped # ampersands in Nokogiri for java/jruby we need to # force ' & ' to ' & '; may have to do with # https://github.com/sparklemotion/nokogiri/issues/614 @raw_xml = savon_response.body[response_key][return_key].gsub(' & ', ' & ') end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exlibris-primo-1.1.0 | lib/exlibris/primo/web_service/response/base.rb |
exlibris-primo-1.0.11 | lib/exlibris/primo/web_service/response/base.rb |