Class: Search::OpportunityTextPresenter
- Inherits:
-
OpportunityPresenter
- Object
- OpportunityPresenter
- Search::OpportunityTextPresenter
- Defined in:
- app/presenters/search/opportunity_text_presenter.rb
Instance Method Summary collapse
Instance Method Details
#contact_link ⇒ Object
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 |
#customer_link ⇒ Object
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 |
#opportunity_link ⇒ Object
3 4 5 |
# File 'app/presenters/search/opportunity_text_presenter.rb', line 3 def opportunity_link r.name end |