Class: EgovUtils::Person

Inherits:
ApplicationRecord show all
Defined in:
app/models/egov_utils/person.rb

Instance Method Summary collapse

Instance Method Details

#person_entityObject



16
17
18
19
20
21
22
23
# File 'app/models/egov_utils/person.rb', line 16

def person_entity
  case person_type
  when 'natural'
    natural_person
  when 'legal'
    legal_person
  end
end

#to_sObject



25
26
27
# File 'app/models/egov_utils/person.rb', line 25

def to_s
  person_entity.to_s
end