Sha256: 8c547c5d9979f63730e8a87722a3b7939ffe8af2e32e61206eaf981db15077ca

Contents?: true

Size: 738 Bytes

Versions: 41

Compression:

Stored size: 738 Bytes

Contents

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

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.20 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.19 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.18 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.17 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.16 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.15 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.14 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.13 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.12 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.11 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.10 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.9 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.8 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.7 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.6 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.5 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.4 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.3 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb
eco-helpers-3.0.2 lib/eco/api/common/version_patches/ecoportal_api/external_person.rb