Module: Onomastic

Extended by:
ActiveSupport::Concern
Included in:
User
Defined in:
app/models/concerns/onomastic.rb

Instance Method Summary collapse

Instance Method Details

#formal_first_nameObject



8
9
10
# File 'app/models/concerns/onomastic.rb', line 8

def formal_first_name
  verified_first_name.presence || first_name
end

#formal_full_nameObject



20
21
22
# File 'app/models/concerns/onomastic.rb', line 20

def formal_full_name
  join_names formal_first_name, formal_last_name
end

#formal_last_nameObject



12
13
14
# File 'app/models/concerns/onomastic.rb', line 12

def formal_last_name
  verified_last_name.presence || last_name
end

#full_nameObject



24
25
26
# File 'app/models/concerns/onomastic.rb', line 24

def full_name
  join_names first_name, last_name
end

#has_verified_full_name?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/models/concerns/onomastic.rb', line 16

def has_verified_full_name?
  verified_first_name? && verified_last_name?
end

#verified_full_nameObject



28
29
30
# File 'app/models/concerns/onomastic.rb', line 28

def verified_full_name
  join_names verified_first_name, verified_last_name
end