Class: Search::CreditApplicationPresenter

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

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



11
12
13
14
# File 'app/presenters/search/credit_application_presenter.rb', line 11

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



6
7
8
9
# File 'app/presenters/search/credit_application_presenter.rb', line 6

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