Class: Search::OpportunityTextPresenter
- Inherits:
-
OpportunityPresenter
- Object
- OpportunityPresenter
- Search::OpportunityTextPresenter
- Defined in:
- app/presenters/search/opportunity_text_presenter.rb
Overview
Presenter: opportunity text presenter.
Instance Method Summary collapse
Instance Method Details
#contact_link ⇒ Object
12 13 14 15 16 |
# File 'app/presenters/search/opportunity_text_presenter.rb', line 12 def contact_link return unless r.has_columns?(:contact_id, :contact_full_name) r.contact_full_name end |
#customer_link ⇒ Object
8 9 10 |
# File 'app/presenters/search/opportunity_text_presenter.rb', line 8 def customer_link "#{r.customer_full_name} (CN#{r.customer_id})" end |
#opportunity_link ⇒ Object
4 5 6 |
# File 'app/presenters/search/opportunity_text_presenter.rb', line 4 def opportunity_link r.name end |