Sha256: b8c4f6005d3f011fff1aeb71388bc7a4030d11cb33aadf08671ed1d4d8ff2cbc
Contents?: true
Size: 289 Bytes
Versions: 3
Compression:
Stored size: 289 Bytes
Contents
# frozen_string_literal: true module LedgerSync class Payment < LedgerSync::Resource attribute :amount, type: Type::Integer attribute :currency, type: Type::String references_one :customer, to: Customer def name "Payment: #{amount} #{currency}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.1.3 | lib/ledger_sync/resources/payment.rb |
ledger_sync-1.1.2 | lib/ledger_sync/resources/payment.rb |
ledger_sync-1.1.1 | lib/ledger_sync/resources/payment.rb |