Sha256: 409800acbaf24b7efbdc72a70f1703a632db03b4691dbb0181e5bf0719dcbba0
Contents?: true
Size: 775 Bytes
Versions: 6
Compression:
Stored size: 775 Bytes
Contents
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 def identify(section = :person) if entry && section == :entry entry.to_s(:identify) else str_id = id ? "id: '#{id}'; " : "" "'#{name}' (#{str_id}ext_id: '#{external_id}'; email: '#{email}')" end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems