Class: Search::CustomerTextPresenter

Inherits:
CustomerPresenter
  • Object
show all
Defined in:
app/presenters/search/customer_text_presenter.rb

Instance Method Summary collapse

Instance Method Details

#customerObject



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

def customer
  "#{r.full_name} (CN#{r.id})"
end

#customer_watch_symbolObject



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_reasonsObject



28
29
30
# File 'app/presenters/search/customer_text_presenter.rb', line 28

def drop_reasons
  r.drop_reasons.join(' ')
end

#has_online_accountObject



20
21
22
# File 'app/presenters/search/customer_text_presenter.rb', line 20

def 
  h.y r.
end

#idObject



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

def id
  "CN#{r.id}"
end

#open_sales_activityObject



16
17
18
# File 'app/presenters/search/customer_text_presenter.rb', line 16

def open_sales_activity
  h.y r.open_sales_activity
end

#ratingObject



24
25
26
# File 'app/presenters/search/customer_text_presenter.rb', line 24

def rating
  r.rating
end