Sha256: 857f2da1ae7d88fa4f746ff7c3ce89ba2efda3b192804ba93145132be8763226

Contents?: true

Size: 349 Bytes

Versions: 11

Compression:

Stored size: 349 Bytes

Contents

require 'peddler/xml_parser'

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

    def type
      parse['Type']
    end

    def code
      parse['Code']
    end

    private

    def find_data
      xml
        .fetch('ErrorResponse', {})
        .fetch('Error', {})
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
peddler-1.3.0 lib/peddler/error_parser.rb
peddler-1.2.0 lib/peddler/error_parser.rb
peddler-1.1.1 lib/peddler/error_parser.rb
peddler-1.1.0 lib/peddler/error_parser.rb
peddler-1.0.2 lib/peddler/error_parser.rb
peddler-1.0.1 lib/peddler/error_parser.rb
peddler-1.0.0 lib/peddler/error_parser.rb
peddler-0.19.0 lib/peddler/error_parser.rb
peddler-0.18.0 lib/peddler/error_parser.rb
peddler-0.17.1 lib/peddler/error_parser.rb
peddler-0.17.0 lib/peddler/error_parser.rb