Sha256: 8893b4b4e8ef59bf920b1a5aa689067b2a476934f75c7bafb3e8b94c2e1f14bf
Contents?: true
Size: 1.62 KB
Versions: 16
Compression:
Stored size: 1.62 KB
Contents
# unpack classed data item # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2015-08-20 original script module ADIWG module Mdtranslator module Readers module MdJson module ClassedDataItem def self.unpack(hClassData, responseObj) # instance classes needed in script intMetadataClass = InternalMetadata.new hClassItem = intMetadataClass.newClassedDataItem # classed data item - name if hClassData.has_key?('className') s = hClassData['className'] if s != '' hClassItem[:className] = s end end # classed data item - description if hClassData.has_key?('classDescription') s = hClassData['classDescription'] if s != '' hClassItem[:classDescription] = s end end # classed data item - value if hClassData.has_key?('classValue') s = hClassData['classValue'] if s != '' hClassItem[:classValue] = s end end return hClassItem end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems