Class: Search::CreditApplicationTextPresenter

Inherits:
CreditApplicationPresenter
  • Object
show all
Defined in:
app/presenters/search/credit_application_text_presenter.rb

Instance Method Summary collapse

Instance Method Details

#credit_applicationObject



9
10
11
12
# File 'app/presenters/search/credit_application_text_presenter.rb', line 9

def credit_application
  return unless r.has_columns?(:reference_number,:id)
  r.reference_number
end

#customerObject



3
4
5
6
7
# File 'app/presenters/search/credit_application_text_presenter.rb', line 3

def customer
  return unless r.has_columns?(:customer_id)
  cu = Customer.find(r.customer_id)
  "#{cu.full_name} (CN#{r.customer_id})"
end