module Eco module API module Common module PersonPatch # @attr entry [Eco::API::Common::People::PersonEntry, Hash] the input entry plain hash data used to update/create this person. attr_accessor :entry def identify(section = :person) return entry.to_s(:identify) if entry && section == :entry str_id = id ? "id: '#{id}'; " : "" "'#{name}' (#{str_id}ext_id: '#{external_id}'; email: '#{email}')" end attr_writer :subordinates # 2024-03-04 patch for API property deletetion def subordinates @subordinates ||= 0 end end Ecoportal::API::V1::Person.include PersonPatch end end end