Sha256: a087e46e752ea1f85a823689c9e3dee4add99b8cc741af2ad8ebae0bf1baa742

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

module MoneyS3
  module Parsers
    class ReferenceType
      include ParserCore::BaseParser

      def id
        array_of_at(String, ['ID'])
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:id] = id if has? 'ID'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/reference_type.rb
money_s3-2.4.0 lib/money_s3/parsers/reference_type.rb
money_s3-2.3.0 lib/money_s3/parsers/reference_type.rb
money_s3-2.2.0 lib/money_s3/parsers/reference_type.rb
money_s3-2.1.0 lib/money_s3/parsers/reference_type.rb
money_s3-2.0.0 lib/money_s3/parsers/reference_type.rb
money_s3-1.0.0 lib/money_s3/parsers/reference_type.rb