Class: Search::QuoteTextPresenter
- Inherits:
-
QuotePresenter
- Object
- QuotePresenter
- Search::QuoteTextPresenter
- Defined in:
- app/presenters/search/quote_text_presenter.rb
Overview
Text-only row presenter for QuoteSearch — renders the same cells as
QuotePresenter but without HTML links, for CSV/Excel export or other
plain-text consumers.
Instance Method Summary collapse
-
#customer_link ⇒ String?
Customer name; nil when the required columns are not selected.
-
#quote_link ⇒ String
Quote reference number.
Instance Method Details
#customer_link ⇒ String?
Customer name; nil when the required columns are not selected.
17 18 19 20 21 |
# File 'app/presenters/search/quote_text_presenter.rb', line 17 def customer_link return unless r.has_columns?(:customer_full_name, :customer_id) r.customer_full_name end |
#quote_link ⇒ String
Quote reference number.
10 11 12 |
# File 'app/presenters/search/quote_text_presenter.rb', line 10 def quote_link r.reference_number end |