11
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
39
40
41
42
|
# File 'lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb', line 11
def self.unpack(hConformanceResult, responseObj, inContext = nil)
intMetadataClass = InternalMetadata.new
intConformanceResult = intMetadataClass.newConformanceResult
if hConformanceResult.has_key?('dateTime')
intConformanceResult[:dateTime] = hConformanceResult['dateTime']
end
if hConformanceResult.has_key?('scope')
intConformanceResult[:scope] = Scope.unpack(hConformanceResult['scope'], responseObj)
end
if hConformanceResult.has_key?('specification')
intConformanceResult[:specification] = Citation.unpack(hConformanceResult['specification'], responseObj)
end
if hConformanceResult.has_key?('explanation')
intConformanceResult[:explanation] = hConformanceResult['explanation']
end
if hConformanceResult.has_key?('pass')
intConformanceResult[:pass] = hConformanceResult['pass']
end
return intConformanceResult
end
|