Class: Search::CreditApplicationTextPresenter
- Inherits:
-
CreditApplicationPresenter
- Object
- CreditApplicationPresenter
- Search::CreditApplicationTextPresenter
- Defined in:
- app/presenters/search/credit_application_text_presenter.rb
Instance Method Summary collapse
Instance Method Details
#credit_application ⇒ Object
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 |
#customer ⇒ Object
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 |