Sha256: b731c36ccbdf9c239e29a81e307232a973fd528d8eeec31f906a9fd8b710e2bf

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

module LedgerSync
  class JournalEntry < LedgerSync::Resource
    attribute :currency, type: Type::String
    attribute :memo, type: Type::String
    attribute :transaction_date, type: Type::Date

    references_many :line_items, to: JournalEntryLineItem

    def name
      "JournalEntry: #{transaction_date.to_s}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-1.1.1 lib/ledger_sync/resources/journal_entry.rb