Sha256: fa8c83cc665f47e26a4526a6f99ac3b343e696bf3a922951bc3dcca030d0537b

Contents?: true

Size: 395 Bytes

Versions: 9

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

require 'peddler/xml_parser'

module Peddler
  module Errors
    # @api private
    class Parser < XMLParser
      def message
        parse['Message']
      end

      def type
        parse['Type']
      end

      def code
        parse['Code']
      end

      private

      def find_data
        xml.dig('ErrorResponse', 'Error')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
peddler-2.1.1 lib/peddler/errors/parser.rb
peddler-2.1.0 lib/peddler/errors/parser.rb
peddler-2.0.4 lib/peddler/errors/parser.rb
peddler-2.0.3 lib/peddler/errors/parser.rb
peddler-2.0.0 lib/peddler/errors/parser.rb
peddler-1.6.7 lib/peddler/errors/parser.rb
peddler-1.6.6 lib/peddler/errors/parser.rb
peddler-1.6.5 lib/peddler/errors/parser.rb
peddler-1.6.4 lib/peddler/errors/parser.rb