module ADIWG::Mdtranslator::Writers::MdJson::Dictionary
Public Class Methods
build(hDictionary)
click to toggle source
# 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