Class: Search::ContactTextPresenter
- Inherits:
-
ContactPresenter
- Object
- ContactPresenter
- Search::ContactTextPresenter
- Defined in:
- app/presenters/search/contact_text_presenter.rb
Overview
Presenter: contact text presenter.
Instance Method Summary collapse
Instance Method Details
#contact ⇒ Object
4 5 6 7 8 |
# File 'app/presenters/search/contact_text_presenter.rb', line 4 def contact return unless r.has_columns?(:id, :full_name) r.full_name end |
#customer ⇒ Object
10 11 12 13 14 |
# File 'app/presenters/search/contact_text_presenter.rb', line 10 def customer return unless r.has_columns?(:customer_id, :customer_full_name) "#{r.customer_full_name} (CN#{r.customer_id})" end |