module ADIWG::Mdtranslator::Writers::MdJson::ProcessStep
Public Class Methods
build(hStep)
click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_processStep.rb, line 27 def self.build(hStep) Jbuilder.new do |json| json.stepId hStep[:stepId] json.description hStep[:description] json.rationale hStep[:rationale] json.timePeriod TimePeriod.build(hStep[:timePeriod]) unless hStep[:timePeriod].empty? json.processor @Namespace.json_map(hStep[:processors], ResponsibleParty) json.reference @Namespace.json_map(hStep[:references], Citation) json.stepSource @Namespace.json_map(hStep[:stepSources], Source) json.stepProduct @Namespace.json_map(hStep[:stepProducts], Source) json.scope Scope.build(hStep[:scope]) unless hStep[:scope].empty? json.processingInformation Processing.build(hStep[:processingInformation]) unless hStep[:processingInformation].empty? json.report @Namespace.json_map(hStep[:reports], ProcessStepReport) end end