Class: Renalware::Accesses::ProfilePresenter

Inherits:
DumbDelegator show all
Defined in:
app/presenters/renalware/accesses/profile_presenter.rb

Instance Method Summary collapse

Methods inherited from DumbDelegator

#inspect, #public_send, #send, #try, #try!

Instance Method Details

#formed_onObject



6
7
8
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 6

def formed_on
  ::I18n.l(super)
end

#plan_dateObject



26
27
28
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 26

def plan_date
  current_plan.created_at
end

#plan_typeObject



22
23
24
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 22

def plan_type
  current_plan.plan_type.to_s
end

#sideObject



18
19
20
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 18

def side
  super.try(:text)
end

#started_onObject



10
11
12
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 10

def started_on
  ::I18n.l(super)
end

#terminated_onObject



14
15
16
# File 'app/presenters/renalware/accesses/profile_presenter.rb', line 14

def terminated_on
  ::I18n.l(super)
end