Class: KOSapiClient::Entity::BasePerson

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/kosapi_client/entity/base_person.rb

Direct Known Subclasses

Person, Student, Teacher

Instance Method Summary collapse

Methods included from DataMappings

included, #to_hash

Instance Method Details

#full_nameObject



12
13
14
15
16
# File 'lib/kosapi_client/entity/base_person.rb', line 12

def full_name
  prefix = "#{titles_pre} " if titles_pre
  suffix = " #{titles_post}" if titles_post
  "#{prefix}#{first_name} #{last_name}#{suffix}"
end