Class: Search::CreditApplicationTextPresenter
- Inherits:
-
CreditApplicationPresenter
- Object
- CreditApplicationPresenter
- Search::CreditApplicationTextPresenter
- Defined in:
- app/presenters/search/credit_application_text_presenter.rb
Overview
Presenter: credit application text presenter.
Instance Method Summary collapse
Instance Method Details
#credit_application ⇒ Object
11 12 13 14 15 |
# File 'app/presenters/search/credit_application_text_presenter.rb', line 11 def credit_application return unless r.has_columns?(:reference_number, :id) r.reference_number end |
#customer ⇒ Object
4 5 6 7 8 9 |
# File 'app/presenters/search/credit_application_text_presenter.rb', line 4 def customer return unless r.has_columns?(:customer_id) cu = Customer.find(r.customer_id) "#{cu.full_name} (CN#{r.customer_id})" end |