Class: EgovUtils::Person
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- EgovUtils::Person
- Defined in:
- app/models/egov_utils/person.rb
Instance Method Summary collapse
Instance Method Details
#person_entity ⇒ Object
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_s ⇒ Object
25 26 27 |
# File 'app/models/egov_utils/person.rb', line 25 def to_s person_entity.to_s end |