Sha256: 43c8386736fbb7302f751fb3f77dcdd4f4a50d531e0cb151408b882956aed2a9

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

module MoneyS3
  module Parsers
    class PartnerType
      include ParserCore::BaseParser

      def partner
        submodel_at(FirmaType, 'Partner')
      end

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

        hash[:partner] = partner.to_h if has? 'Partner'

        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/partner_type.rb
money_s3-2.4.0 lib/money_s3/parsers/partner_type.rb
money_s3-2.3.0 lib/money_s3/parsers/partner_type.rb
money_s3-2.2.0 lib/money_s3/parsers/partner_type.rb
money_s3-2.1.0 lib/money_s3/parsers/partner_type.rb
money_s3-2.0.0 lib/money_s3/parsers/partner_type.rb
money_s3-1.0.0 lib/money_s3/parsers/partner_type.rb