Class: QuickSearch::QuotePresenter

Inherits:
PinPresenter
  • Object
show all
Defined in:
app/presenters/quick_search/quote_presenter.rb

Overview

Presents a Quote as a quick search result / pinned item.

See Also:

Instance Method Summary collapse

Instance Method Details

#set_attributesvoid

This method returns an undefined value.

Sets the card title (opportunity or customer name) and badge sub-header.



10
11
12
13
# File 'app/presenters/quick_search/quote_presenter.rb', line 10

def set_attributes
  @title = result.opportunity&.name || result.opportunity&.customer&.full_name
  @sub_header = build_sub_header
end