Module: ADIWG::Mdtranslator::Writers::MdJson::GeologicAge

Defined in:
lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geologicAge.rb

Class Method Summary collapse

Class Method Details

.build(hGeoAge) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geologicAge.rb', line 16

def self.build(hGeoAge)

   @Namespace = ADIWG::Mdtranslator::Writers::MdJson

   Jbuilder.new do |json|
      json.ageTimeScale hGeoAge[:ageTimeScale]
      json.ageEstimate hGeoAge[:ageEstimate]
      json.ageUncertainty hGeoAge[:ageUncertainty]
      json.ageExplanation hGeoAge[:ageExplanation]
      json.ageReference @Namespace.json_map(hGeoAge[:ageReferences], Citation)
   end

end