Class: Renalware::Transplants::ConsentPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Renalware::Transplants::ConsentPresenter
- Defined in:
- app/presenters/renalware/transplants/consent_presenter.rb
Overview
Extends a RecipientWorkupDocument::YesNoUnknownConsent document attribute
Instance Method Summary collapse
-
#to_s ⇒ Object
Renders eg “12-Apr-2018 Yes”.
Instance Method Details
#to_s ⇒ Object
Renders eg “12-Apr-2018 Yes”
10 11 12 |
# File 'app/presenters/renalware/transplants/consent_presenter.rb', line 10 def to_s [I18n.l(), value&.text].compact.join(" ") end |