Sha256: 9248007746d2a33df97f11aba7dd73ef2facec9523f653dfb5e071a04d020987
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'bill_line_item' require_relative 'currency' require_relative 'vendor' module LedgerSync class Bill < LedgerSync::Resource attribute :memo, type: Type::String attribute :transaction_date, type: Type::Date attribute :due_date, type: Type::Date attribute :reference_number, type: Type::String references_one :vendor, to: Vendor references_one :account, to: Account references_one :currency, to: Currency references_many :line_items, to: BillLineItem def name "Bill: #{transaction_date}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.2 | lib/ledger_sync/resources/bill.rb |