27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# 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
|