module Ecoportal module API class V1 # @attr entry [Eco::API::Common::People::PersonEntry, Hash] the input entry plain hash data used to update/create this person. class Person attr_accessor :entry def reset_details! doc["details"] = JSON.parse(original_doc["details"]) end def consolidate_details! original_doc["details"] = JSON.parse(doc["details"]) end end end end end