module ADIWG::Mdtranslator::Writers::MdJson::TimeInstant
Public Class Methods
build(hTimeInstant)
click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_timeInstant.rb, line 19 def self.build(hTimeInstant) Jbuilder.new do |json| json.id hTimeInstant[:timeId] json.description hTimeInstant[:description] json.identifier Identifier.build(hTimeInstant[:identifier]) unless hTimeInstant[:identifier].empty? json.instantName hTimeInstant[:instantNames] unless hTimeInstant[:instantNames].empty? json.dateTime DateTime.build(hTimeInstant[:timeInstant]) unless hTimeInstant[:timeInstant].empty? json.geologicAge GeologicAge.build(hTimeInstant[:geologicAge]) unless hTimeInstant[:geologicAge].empty? end end