Sha256: 7f3d2bbd690d863cff40b65d429219643cb42896f623e473e3267c569528a064

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

require 'peddler/xml_parser'

module Peddler
  module Errors
    # @!visibility 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

6 entries across 6 versions & 1 rubygems

Version Path
peddler-2.4.5 lib/peddler/errors/parser.rb
peddler-2.4.4 lib/peddler/errors/parser.rb
peddler-2.4.3 lib/peddler/errors/parser.rb
peddler-2.4.1 lib/peddler/errors/parser.rb
peddler-2.4.0 lib/peddler/errors/parser.rb
peddler-2.3.0 lib/peddler/errors/parser.rb