Class: Search::LedgerEntryTextPresenter

Inherits:
LedgerEntryPresenter
  • Object
show all
Defined in:
app/presenters/search/ledger_entry_text_presenter.rb

Overview

Plain-text presenter for ledger entry search results backed by ViewLedgerEntry.

Instance Method Summary collapse

Instance Method Details

#documentString

Returns a string representation of the associated ledger transaction.

Returns:

  • (String)


18
19
20
# File 'app/presenters/search/ledger_entry_text_presenter.rb', line 18

def document
  r.ledger_transaction.to_s
end

Returns the ledger transaction number as plain text.

Returns:

  • (String)


11
12
13
# File 'app/presenters/search/ledger_entry_text_presenter.rb', line 11

def transaction_number_link
  r.lt_transaction_number
end