Sha256: cc81c5689dbe4898ec3deef2f5bcad4bddba4861d3bc0315fb45ecca5d4f755d

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'ledger_class'

module LedgerSync
  class ExpenseLineItem < LedgerSync::Resource
    references_one :account, to: Account
    references_one :ledger_class, to: LedgerClass
    attribute :amount, type: Type::Integer
    attribute :description, type: Type::String

    def name
      description
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/resources/expense_line_item.rb
ledger_sync-1.3.4 lib/ledger_sync/resources/expense_line_item.rb
ledger_sync-1.3.3 lib/ledger_sync/resources/expense_line_item.rb