Class: TocDoc::Profile::Practitioner

Inherits:
Profile
  • Object
show all
Defined in:
lib/toc_doc/models/profile/practitioner.rb

Overview

A practitioner profile (raw owner_type: "Account").

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns the practitioner's display name.

Prefers name_with_title (e.g. "Dr Jane Doe") when present, falling back to plain name.

Returns:

  • (String)


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