Class: TocDoc::Profile::Practitioner
- Inherits:
-
Profile
- Object
- Profile
- TocDoc::Profile::Practitioner
- Defined in:
- lib/toc_doc/models/profile/practitioner.rb
Overview
A practitioner profile (raw owner_type: "Account").
Instance Method Summary collapse
-
#to_s ⇒ String
Returns the practitioner's display name.
Instance Method Details
#to_s ⇒ String
Returns the practitioner's display name.
Prefers name_with_title (e.g. "Dr Jane Doe") when present,
falling back to plain name.
15 16 17 |
# File 'lib/toc_doc/models/profile/practitioner.rb', line 15 def to_s (respond_to?(:name_with_title) && name_with_title) || name end |