Class: EgovUtils::NaturalPerson
- Inherits:
-
AbstractPerson
- Object
- ActiveRecord::Base
- ApplicationRecord
- AbstractPerson
- EgovUtils::NaturalPerson
- Defined in:
- app/models/egov_utils/natural_person.rb
Instance Method Summary collapse
Instance Method Details
#fullname ⇒ Object
9 10 11 |
# File 'app/models/egov_utils/natural_person.rb', line 9 def fullname firstname.to_s + ' ' + lastname.to_s end |
#to_s ⇒ Object
13 14 15 |
# File 'app/models/egov_utils/natural_person.rb', line 13 def to_s "#{fullname} (#{I18n.t(:text_born_on_at, place: birth_place, date: I18n.l(birth_date.to_date))})" end |