Sha256: 457ccc3b8f3dabffd85d16b3bf28183d8288856833ce4347a4039dfd4cba5b49

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

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

    def name
      description
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.1.3 lib/ledger_sync/resources/expense_line_item.rb
ledger_sync-1.1.2 lib/ledger_sync/resources/expense_line_item.rb