Module: Eco::API::Common::PersonPatch

Defined in:
lib/eco/api/common/version_patches/ecoportal_api/external_person.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entryObject



6
7
8
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 6

def entry
  @entry
end

#subordinatesObject

2024-03-04 patch for API property deletetion



17
18
19
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 17

def subordinates
  @subordinates ||= 0
end

Instance Method Details

#identify(section = :person) ⇒ Object



8
9
10
11
12
# File 'lib/eco/api/common/version_patches/ecoportal_api/external_person.rb', line 8

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