Sha256: 443398169db486683f25bee12cd3a80125d6ea7928a64a6fcc76699c1574bbfd
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
# unpack responsible party # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-08-26 original script # Stan Smith 2014-05-28 modified to support JSON schema 0.5.0 # ... removed resource IDs associated with contact # Stan Smith 2014-12-15 refactored to handle namespacing readers and writers module ADIWG module Mdtranslator module Readers module MdJson module ResponsibleParty def self.unpack(hRParty) # instance classes needed in script intMetadataClass = InternalMetadata.new intResById = intMetadataClass.newRespParty # responsible party - contact if hRParty.has_key?('contactId') s = hRParty['contactId'] if s != '' intResById[:contactId] = s end end # responsible party - role - required if hRParty.has_key?('role') s = hRParty['role'] if s != '' intResById[:roleName] = s end end return intResById end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.12.0 | lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_responsibleParty.rb |