Sha256: cf65c098ba66fc38d6ffa2682f651e09a140b3da453a353fa250b0454a41d58e
Contents?: true
Size: 427 Bytes
Versions: 16
Compression:
Stored size: 427 Bytes
Contents
module EgovUtils class NaturalPerson < AbstractPerson belongs_to :person, class_name: 'EgovUtils::Person' validates :firstname, :lastname, :birth_date, presence: true validates :birth_date, birthday: true def fullname firstname.to_s + ' ' + lastname.to_s end def to_s "#{fullname} (#{I18n.t(:text_born_on_at, place: birth_place, date: I18n.l(birth_date.to_date))})" end end end
Version data entries
16 entries across 16 versions & 1 rubygems