Class: Search::CreditApplicationTextPresenter
- Inherits:
-
CreditApplicationPresenter
- Object
- CreditApplicationPresenter
- Search::CreditApplicationTextPresenter
- Defined in:
- app/presenters/search/credit_application_text_presenter.rb
Overview
Plain-text variant of CreditApplicationPresenter for CSV/Excel exports.
Instance Method Summary collapse
-
#credit_application ⇒ String?
Credit-application reference number (no link).
-
#customer ⇒ String?
Customer name with account number (no link).
Instance Method Details
#credit_application ⇒ String?
Credit-application reference number (no link).
18 19 20 21 22 |
# File 'app/presenters/search/credit_application_text_presenter.rb', line 18 def credit_application return unless r.has_columns?(:reference_number, :id) r.reference_number end |
#customer ⇒ String?
Customer name with account number (no link).
8 9 10 11 12 13 |
# File 'app/presenters/search/credit_application_text_presenter.rb', line 8 def customer return unless r.has_columns?(:customer_id) cu = Customer.find(r.customer_id) "#{cu.full_name} (CN#{r.customer_id})" end |