Class: QuickSearch::InvoicePresenter
- Inherits:
-
PinPresenter
- Object
- PinPresenter
- QuickSearch::InvoicePresenter
- Defined in:
- app/presenters/quick_search/invoice_presenter.rb
Overview
Presents an Invoice as a quick search result / pinned item.
Instance Method Summary collapse
-
#set_attributes ⇒ void
Sets the card title (customer or reference number) and badge sub-header.
Instance Method Details
#set_attributes ⇒ void
This method returns an undefined value.
Sets the card title (customer or reference number) and badge sub-header.
10 11 12 13 |
# File 'app/presenters/quick_search/invoice_presenter.rb', line 10 def set_attributes @title = result.customer&.full_name || result.reference_number @sub_header = build_sub_header end |