Class: Search::PresetJobTextPresenter

Inherits:
PresetJobPresenter
  • Object
show all
Defined in:
app/presenters/search/preset_job_text_presenter.rb

Instance Method Summary collapse

Instance Method Details



7
8
9
10
# File 'app/presenters/search/preset_job_text_presenter.rb', line 7

def customer_link
  return unless r.has_columns?(:customer_full_name, :customer_id)
  "#{r.customer_full_name} (CN#{r.customer_id})"
end


3
4
5
# File 'app/presenters/search/preset_job_text_presenter.rb', line 3

def job_link
  r.reference_number || 'Not Set Yet'
end