Sha256: 6df345479d6e51da68c7d94f1a5ce12269f49ba538652a4d561e8c76b0817ae1

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class ErrorInfoType
      include BaseParser

      def error_type_coded
        at :ErrorTypeCoded
      end

      def error_type_other
        at :ErrorTypeOther
      end

      def error_code
        at :ErrorCode
      end

      def error_description
        at :ErrorDescription
      end

      def to_h
        { error_type_coded: error_type_coded,
          error_type_other: error_type_other,
          error_code: error_code,
          error_description: error_description
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/error_info_type.rb