Sha256: caad7ac73ab45efa449adac537614de51550becbb39c3119c0191132455fe80c
Contents?: true
Size: 1.64 KB
Versions: 11
Compression:
Stored size: 1.64 KB
Contents
# unpack a data dictionary domain item # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-12-01 original script # Stan Smith 2014-12-15 refactored to handle namespacing readers and writers module ADIWG module Mdtranslator module Readers module MdJson module DomainItem def self.unpack(hDoItem) # instance classes needed in script intMetadataClass = InternalMetadata.new intItem = intMetadataClass.newDomainItem # data dictionary domain item - name if hDoItem.has_key?('name') s = hDoItem['name'] if s != '' intItem[:itemName] = s end end # data dictionary domain item - value if hDoItem.has_key?('value') s = hDoItem['value'] if s != '' intItem[:itemValue] = s end end # data dictionary domain item - definition if hDoItem.has_key?('definition') s = hDoItem['definition'] if s != '' intItem[:itemDefinition] = s end end return intItem end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems