Sha256: 197ecdb1b5c9c44cd70a97bcfd51519db5e6192a9a6a55147ab179414d918d7b
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# unpack contact # Reader - ADIwg JSON to internal data structure # History: # Stan Smith 2018-02-20 original script require_relative 'module_mdJson' module ADIWG module Mdtranslator module Readers module MdJson module ContactPost def self.examine(aContact, responseObj) # test that all organizationMember IDs are in the contacts array aContact.each do |hContact| contactId = hContact[:contactId] hContact[:memberOfOrgs].each do |orgId| hOrg = MdJson.findContact(orgId) if hOrg[0].nil? responseObj[:readerExecutionMessages] << "ERROR: mdJson reader: contact #{contactId} organization contact ID #{orgId} not found" responseObj[:readerExecutionPass] = false end end end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems