Class: Search::CreditApplicationPresenter

Inherits:
BasePresenter
  • Object
show all
Includes:
Presenters::Timeable
Defined in:
app/presenters/search/credit_application_presenter.rb

Overview

Presenter: credit application presenter.

Direct Known Subclasses

CreditApplicationTextPresenter

Instance Attribute Summary

Attributes inherited from BasePresenter

#current_account, #options, #url_helper

Instance Method Summary collapse

Methods inherited from BasePresenter

#can?, #capture, #concat, #content_tag, #fa_icon, #h, #initialize, #link_to, #number_to_currency, #present, presents, #r, #safe_present, #simple_format, #u

Constructor Details

This class inherits a constructor from BasePresenter

Instance Method Details

#credit_applicationObject



14
15
16
17
18
# File 'app/presenters/search/credit_application_presenter.rb', line 14

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

  h.link_to r.reference_number, h.credit_application_path(r.id)
end

#customerObject



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

def customer
  return unless r.has_columns?(:customer_id)

  h.link_to Customer.find(r.customer_id).full_name, h.customer_path(r.customer_id)
end