Class: Ecoportal::API::V1::Person
- Inherits:
-
Object
- Object
- Ecoportal::API::V1::Person
- Defined in:
- lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
Instance Attribute Summary collapse
-
#entry ⇒ Eco::API::Common::People::PersonEntry, Hash
the input entry plain hash data used to update/create this person.
Instance Method Summary collapse
Instance Attribute Details
#entry ⇒ Eco::API::Common::People::PersonEntry, Hash
the input entry plain hash data used to update/create this person.
5 6 7 |
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 5 def entry @entry end |
Instance Method Details
#consolidate_details! ⇒ Object
12 13 14 |
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 12 def consolidate_details! original_doc["details"] = JSON.parse(doc["details"]) end |
#reset_details! ⇒ Object
8 9 10 |
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 8 def reset_details! doc["details"] = JSON.parse(original_doc["details"]) end |