Sha256: f451f8fb7a766e14b338cffab7a8d9ec2d40242d404398c05e9b19b228b84bc6
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'bill_line_item' require_relative 'currency' require_relative 'department' 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 :department, to: Department references_one :currency, to: Currency references_many :line_items, to: BillLineItem def name "Bill: #{transaction_date}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.5 | lib/ledger_sync/resources/bill.rb |
ledger_sync-1.3.4 | lib/ledger_sync/resources/bill.rb |
ledger_sync-1.3.3 | lib/ledger_sync/resources/bill.rb |