9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb', line 9
def self.unpack(hResult, responseObj, inContext = nil)
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
if hResult.empty?
@MessagePath.issueWarning(80, responseObj, inContext)
return nil
end
intMetadataClass = InternalMetadata.new
intResult = intMetadataClass.newDescriptiveResult
if hResult.has_key?('dateTime')
intResult[:dateTime] = hResult['dateTime']
end
if hResult.has_key?('scope')
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
end
if hResult.has_key?('statement')
intResult[:statement] = hResult['statement']
end
return intResult
end
|