Sha256: f3e27b1fb4afc13a19985c7e10ef08cee9653909a76452a246de27d836469723

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'ledger_class'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class ExpenseLineItem < QuickBooksOnline::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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.4.4 lib/ledger_sync/ledgers/quickbooks_online/resources/expense_line_item.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/resources/expense_line_item.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/resources/expense_line_item.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/resources/expense_line_item.rb