Module: Adiwg_DataQuality

Defined in:
lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_dataQuality.rb

Class Method Summary collapse

Class Method Details

.unpack(hDataQual) ⇒ Object



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)

	# instance classes needed in script
	intMetadataClass = InternalMetadata.new
	intDataQual = intMetadataClass.newDataQuality

	# data quality - scope
	if hDataQual.has_key?('scope')
		s = hDataQual['scope']
		if s != ''
			intDataQual[:dataScope] = s
		end
	end

	# data quality - report
	# on hold

	# data quality - lineage
	if hDataQual.has_key?('lineage')
		hLineage = hDataQual['lineage']
		unless hLineage.empty?
			intDataQual[:dataLineage] = Adiwg_Lineage.unpack(hLineage)
		end
	end

	return intDataQual
end