Class: Search::CustomerTextPresenter
- Inherits:
-
CustomerPresenter
- Object
- CustomerPresenter
- Search::CustomerTextPresenter
- Defined in:
- app/presenters/search/customer_text_presenter.rb
Instance Method Summary collapse
- #customer ⇒ Object
- #customer_watch_symbol ⇒ Object
- #drop_reasons ⇒ Object
- #has_online_account ⇒ Object
- #id ⇒ Object
- #open_sales_activity ⇒ Object
- #rating ⇒ Object
Instance Method Details
#customer ⇒ Object
3 4 5 |
# File 'app/presenters/search/customer_text_presenter.rb', line 3 def customer "#{r.full_name} (CN#{r.id})" end |
#customer_watch_symbol ⇒ Object
11 12 13 14 |
# File 'app/presenters/search/customer_text_presenter.rb', line 11 def customer_watch_symbol return unless r.has_columns?(:watch, :open_sales_activity) h.y r.customer_watch end |
#drop_reasons ⇒ Object
28 29 30 |
# File 'app/presenters/search/customer_text_presenter.rb', line 28 def drop_reasons r.drop_reasons.join(' ') end |
#has_online_account ⇒ Object
20 21 22 |
# File 'app/presenters/search/customer_text_presenter.rb', line 20 def has_online_account h.y r.has_online_account end |
#id ⇒ Object
7 8 9 |
# File 'app/presenters/search/customer_text_presenter.rb', line 7 def id "CN#{r.id}" end |
#open_sales_activity ⇒ Object
16 17 18 |
# File 'app/presenters/search/customer_text_presenter.rb', line 16 def open_sales_activity h.y r.open_sales_activity end |
#rating ⇒ Object
24 25 26 |
# File 'app/presenters/search/customer_text_presenter.rb', line 24 def r. end |