Class: Renalware::Directory::PersonAutoCompletePresenter
- Inherits:
-
DumbDelegator
- Object
- DumbDelegator
- Renalware::Directory::PersonAutoCompletePresenter
show all
- Defined in:
- app/presenters/renalware/directory/person_auto_complete_presenter.rb
Instance Method Summary
collapse
#inspect, #public_send, #send, #try, #try!
Instance Method Details
#name_and_address ⇒ Object
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_hash ⇒ Object
12
13
14
|
# File 'app/presenters/renalware/directory/person_auto_complete_presenter.rb', line 12
def to_hash
{ id: id, label: name_and_address }
end
|