Sha256: 53f5fb5e556420a9559e309ef5afd672b828da4efc8b95a809857e42fa5e4a5c

Contents?: true

Size: 521 Bytes

Versions: 25

Compression:

Stored size: 521 Bytes

Contents

module Exlibris
  module Primo
    module WebService
      module Response
        module Error
          def error?
            (error_code && (not error_code.eql? "0"))
          end

          def error
            @error ||= xml_without_namespaces.root.at_xpath("//ERROR")
          end

          def error_code
            @error_code ||= error["CODE"] if error
          end

          def error_message
            @error_message ||= error["MESSAGE"] if error
          end
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-2.1.0 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-2.0.0 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.9 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.8 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.7 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.6 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.5 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.4 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.3 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.2 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.1 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.1.0 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.11 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.10 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.9 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.8 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.7 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.6 lib/exlibris/primo/web_service/response/base/error.rb
exlibris-primo-1.0.5 lib/exlibris/primo/web_service/response/base/error.rb