Class: Renalware::Letters::RecipientPresenter
- Inherits:
-
DumbDelegator
- Object
- DumbDelegator
- Renalware::Letters::RecipientPresenter
- Defined in:
- app/presenters/renalware/letters/recipient_presenter.rb
Direct Known Subclasses
Defined Under Namespace
Classes: WithCurrentAddress
Instance Method Summary collapse
- #address ⇒ Object
-
#to_html ⇒ Object
We don’t rely on ‘to_s` in this case as the string will not be marked as HTML safe if we leave it to be implicitly called in the template.
Methods inherited from DumbDelegator
#inspect, #public_send, #send, #try, #try!
Instance Method Details
#address ⇒ Object
16 17 18 |
# File 'app/presenters/renalware/letters/recipient_presenter.rb', line 16 def address AddressPresenter.new(address_for_addressee) end |
#to_html ⇒ Object
We don’t rely on ‘to_s` in this case as the string will not be marked as HTML safe if we leave it to be implicitly called in the template.
12 13 14 |
# File 'app/presenters/renalware/letters/recipient_presenter.rb', line 12 def to_html AddressPresenter::Block.new(address_for_addressee).to_html end |