Sha256: 9a6ae2baf53b8398b33944e0fb3566e6aaae29c38762de579902761d27a61c1b

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

require_relative 'invoice'

module LedgerSync
  class PaymentLineItem < LedgerSync::Resource
    attribute :amount, type: Type::Integer

    references_many :ledger_transactions, to: [Invoice]

    def name
      amount
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/resources/payment_line_item.rb
ledger_sync-1.3.4 lib/ledger_sync/resources/payment_line_item.rb
ledger_sync-1.3.3 lib/ledger_sync/resources/payment_line_item.rb
ledger_sync-1.3.2 lib/ledger_sync/resources/payment_line_item.rb
ledger_sync-1.3.1 lib/ledger_sync/resources/payment_line_item.rb