24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb', line 24
def self.build(hDictionary)
Jbuilder.new do |json|
json.citation Citation.build(hDictionary[:citation]) unless hDictionary[:citation].empty?
json.description hDictionary[:description]
json.subject hDictionary[:subjects] unless hDictionary[:subjects].empty?
json.recommendedUse hDictionary[:recommendedUses] unless hDictionary[:recommendedUses].empty?
json.locale @Namespace.json_map(hDictionary[:locales], Locale)
json.responsibleParty ResponsibleParty.build(hDictionary[:responsibleParty])
json.dictionaryFunctionalLanguage hDictionary[:dictionaryFunctionalLanguage]
json.dictionaryIncludedWithResource hDictionary[:includedWithDataset]
json.domain @Namespace.json_map(hDictionary[:domains], Domain)
json.entity @Namespace.json_map(hDictionary[:entities], Entity)
end
end
|