Class: Search::EmployeeReviewPresenter
- Inherits:
-
BasePresenter
- Object
- SimpleDelegator
- BasePresenter
- Search::EmployeeReviewPresenter
show all
- Includes:
- Presenters::Timeable
- Defined in:
- app/presenters/search/employee_review_presenter.rb
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
17
18
19
|
# File 'app/presenters/search/employee_review_presenter.rb', line 17
def charities_selected
r.charities_selected.join(', ')
end
|
#charity_allocation ⇒ Object
25
26
27
|
# File 'app/presenters/search/employee_review_presenter.rb', line 25
def charity_allocation
h.number_to_currency(r.charity_allocation)
end
|
#earned_reward ⇒ Object
21
22
23
|
# File 'app/presenters/search/employee_review_presenter.rb', line 21
def earned_reward
h.number_to_currency(r.earned_reward)
end
|
#remaining_reward ⇒ Object
29
30
31
|
# File 'app/presenters/search/employee_review_presenter.rb', line 29
def remaining_reward
h.number_to_currency(r.remaining_reward)
end
|
#review_date ⇒ Object
13
14
15
|
# File 'app/presenters/search/employee_review_presenter.rb', line 13
def review_date
h.render_date(r.review_date)
end
|
#review_link ⇒ Object
9
10
11
|
# File 'app/presenters/search/employee_review_presenter.rb', line 9
def review_link
h.link_to(r.review_name, h.employee_review_path(r.id))
end
|
#reviewee_link ⇒ Object
5
6
7
|
# File 'app/presenters/search/employee_review_presenter.rb', line 5
def reviewee_link
h.link_to(r.reviewee_name, h.employee_path(r.reviewee_employee_id))
end
|