Class: Search::LedgerEntryTextPresenter
- Inherits:
-
LedgerEntryPresenter
- Object
- LedgerEntryPresenter
- Search::LedgerEntryTextPresenter
- 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
-
#document ⇒ String
Returns a string representation of the associated ledger transaction.
-
#transaction_number_link ⇒ String
Returns the ledger transaction number as plain text.
Instance Method Details
#document ⇒ String
Returns a string representation of the associated ledger transaction.
18 19 20 |
# File 'app/presenters/search/ledger_entry_text_presenter.rb', line 18 def document r.ledger_transaction.to_s end |
#transaction_number_link ⇒ String
Returns the ledger transaction number as plain text.
11 12 13 |
# File 'app/presenters/search/ledger_entry_text_presenter.rb', line 11 def transaction_number_link r.lt_transaction_number end |