11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_additionalDocumentation.rb', line 11
def self.unpack(hAddDoc)
intMetadataClass = InternalMetadata.new
intAddDoc = intMetadataClass.newAssociatedResource
if hAddDoc.has_key?('resourceType')
s = hAddDoc['resourceType']
if s != ''
intAddDoc[:resourceType] = s
end
end
if hAddDoc.has_key?('citation')
hCitation = hAddDoc['citation']
unless hCitation.empty?
intAddDoc[:citation] = Adiwg_Citation.unpack(hCitation)
end
end
return intAddDoc
end
|