Class: Search::QuoteTextPresenter

Inherits:
QuotePresenter
  • Object
show all
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

Instance Method Details

Customer name; nil when the required columns are not selected.

Returns:

  • (String, nil)


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 reference number.

Returns:

  • (String)


10
11
12
# File 'app/presenters/search/quote_text_presenter.rb', line 10

def quote_link
  r.reference_number
end