Class: Renalware::Directory::PersonAutoCompletePresenter

Inherits:
DumbDelegator
  • Object
show all
Defined in:
app/presenters/renalware/directory/person_auto_complete_presenter.rb

Instance Method Summary collapse

Methods inherited from DumbDelegator

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

Instance Method Details

#name_and_addressObject



8
9
10
# File 'app/presenters/renalware/directory/person_auto_complete_presenter.rb', line 8

def name_and_address
  [family_name, given_name, address].compact.join(", ")
end

#to_hashObject



12
13
14
# File 'app/presenters/renalware/directory/person_auto_complete_presenter.rb', line 12

def to_hash
  { id: id, text: name_and_address }
end