Sha256: 52381d82cf2d0bde867c7e5ffc889e0d3724aa9f11ff0cc53bb9f285af90715e

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'

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.3.2 lib/ledger_sync/resources/expense_line_item.rb
ledger_sync-1.3.1 lib/ledger_sync/resources/expense_line_item.rb