Class: Renalware::Letters::ContactPresenter

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

Instance Method Summary collapse

Methods inherited from DumbDelegator

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

Instance Method Details

#description_nameObject



8
9
10
# File 'app/presenters/renalware/letters/contact_presenter.rb', line 8

def description_name
  description.unspecified? ? other_description : description.to_s
end

#name_and_descriptionObject



12
13
14
# File 'app/presenters/renalware/letters/contact_presenter.rb', line 12

def name_and_description
  "#{self} (#{description_name})"
end