Class: Search::EmployeeReviewPresenter
- Inherits:
-
BasePresenter
- Object
- SimpleDelegator
- BasePresenter
- Search::EmployeeReviewPresenter
show all
- Includes:
- Presenters::Timeable
- Defined in:
- app/presenters/search/employee_review_presenter.rb
Overview
Presenter: employee review presenter.
Instance Attribute Summary
#current_account, #options, #url_helper
Instance Method Summary
collapse
#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
#charities_selected ⇒ Object
20
21
22
|
# File 'app/presenters/search/employee_review_presenter.rb', line 20
def charities_selected
r.charities_selected.join(', ')
end
|
#charity_allocation ⇒ Object
28
29
30
|
# File 'app/presenters/search/employee_review_presenter.rb', line 28
def charity_allocation
h.number_to_currency(r.charity_allocation)
end
|
#earned_reward ⇒ Object
24
25
26
|
# File 'app/presenters/search/employee_review_presenter.rb', line 24
def earned_reward
h.number_to_currency(r.earned_reward)
end
|
#remaining_reward ⇒ Object
32
33
34
|
# File 'app/presenters/search/employee_review_presenter.rb', line 32
def remaining_reward
h.number_to_currency(r.remaining_reward)
end
|
#review_date ⇒ Object
16
17
18
|
# File 'app/presenters/search/employee_review_presenter.rb', line 16
def review_date
h.render_date(r.review_date)
end
|
#review_link ⇒ Object
12
13
14
|
# File 'app/presenters/search/employee_review_presenter.rb', line 12
def review_link
h.link_to(r.review_name, h.employee_review_path(r.id))
end
|
#reviewee_link ⇒ Object
8
9
10
|
# File 'app/presenters/search/employee_review_presenter.rb', line 8
def reviewee_link
h.link_to(r.reviewee_name, h.employee_path(r.reviewee_employee_id))
end
|