12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_dataQuality.rb', line 12
def self.unpack(hDataQual)
intMetadataClass = InternalMetadata.new
intDataQual = intMetadataClass.newDataQuality
if hDataQual.has_key?('scope')
s = hDataQual['scope']
if s != ''
intDataQual[:dataScope] = s
end
end
if hDataQual.has_key?('lineage')
hLineage = hDataQual['lineage']
unless hLineage.empty?
intDataQual[:dataLineage] = Adiwg_Lineage.unpack(hLineage)
end
end
return intDataQual
end
|