Class: EgovUtils::NaturalPerson

Inherits:
AbstractPerson show all
Defined in:
app/models/egov_utils/natural_person.rb

Instance Method Summary collapse

Instance Method Details

#fullnameObject



9
10
11
# File 'app/models/egov_utils/natural_person.rb', line 9

def fullname
  firstname.to_s + ' ' + lastname.to_s
end

#to_sObject



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