Sha256: 9aa5e2ca04524780ce1dcc880b585f2669444ecfad3118cfc56d0792d66742d5

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
peddler-1.6.3 lib/peddler/errors/parser.rb
peddler-1.6.2 lib/peddler/errors/parser.rb
peddler-1.6.1 lib/peddler/errors/parser.rb