19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_taxonomicClassification.rb', line 19
def self.build(hTaxon)
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
Jbuilder.new do |json|
json.taxonomicSystemId hTaxon[:taxonId]
json.taxonomicLevel hTaxon[:taxonRank]
json.taxonomicName hTaxon[:taxonValue]
json.commonName hTaxon[:commonNames] unless hTaxon[:commonNames].empty?
json.subClassification @Namespace.json_map(hTaxon[:subClasses], TaxonomicClassification)
end
end
|