Class: Renalware::Letters::RecipientPresenter

Inherits:
DumbDelegator show all
Defined in:
app/presenters/renalware/letters/recipient_presenter.rb

Direct Known Subclasses

WithCurrentAddress

Defined Under Namespace

Classes: WithCurrentAddress

Instance Method Summary collapse

Methods inherited from DumbDelegator

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

Instance Method Details

#addressObject



16
17
18
# File 'app/presenters/renalware/letters/recipient_presenter.rb', line 16

def address
  AddressPresenter.new(address_for_addressee)
end

#to_htmlObject

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