Class: QuickSearch::DeliveryPresenter
- Inherits:
-
PinPresenter
- Object
- PinPresenter
- QuickSearch::DeliveryPresenter
- Defined in:
- app/presenters/quick_search/delivery_presenter.rb
Overview
Presents a Delivery as a quick search result / pinned item.
Instance Method Summary collapse
-
#set_attributes ⇒ void
Sets the card title (reference number and BOL) and state badge sub-header.
Instance Method Details
#set_attributes ⇒ void
This method returns an undefined value.
Sets the card title (reference number and BOL) and state badge sub-header.
10 11 12 13 |
# File 'app/presenters/quick_search/delivery_presenter.rb', line 10 def set_attributes @title = [result.reference_number, result.carrier_bol].map(&:presence).compact_blank.join(' | ') @sub_header = build_sub_header end |