Module: Onomastic
Instance Method Summary collapse
- #formal_first_name ⇒ Object
- #formal_full_name ⇒ Object
- #formal_last_name ⇒ Object
- #full_name ⇒ Object
- #has_verified_full_name? ⇒ Boolean
- #verified_full_name ⇒ Object
Instance Method Details
#formal_first_name ⇒ Object
8 9 10 |
# File 'app/models/concerns/onomastic.rb', line 8 def formal_first_name verified_first_name.presence || first_name end |
#formal_full_name ⇒ Object
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_name ⇒ Object
12 13 14 |
# File 'app/models/concerns/onomastic.rb', line 12 def formal_last_name verified_last_name.presence || last_name end |
#full_name ⇒ Object
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
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_name ⇒ Object
28 29 30 |
# File 'app/models/concerns/onomastic.rb', line 28 def verified_full_name join_names verified_first_name, verified_last_name end |