Class: Search::OpportunityTextPresenter

Inherits:
OpportunityPresenter
  • Object
show all
Defined in:
app/presenters/search/opportunity_text_presenter.rb

Instance Method Summary collapse

Instance Method Details



11
12
13
14
# File 'app/presenters/search/opportunity_text_presenter.rb', line 11

def contact_link
  return unless r.has_columns?(:contact_id,:contact_full_name)
  r.contact_full_name
end


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

def customer_link
  "#{r.customer_full_name} (CN#{r.customer_id})"
end


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

def opportunity_link
  r.name
end