Sha256: 01a4df22c768763e8045c2f45b858a043316d8d3431e6bc6b8784895524b1271
Contents?: true
Size: 871 Bytes
Versions: 42
Compression:
Stored size: 871 Bytes
Contents
# mdJson 2.0 writer - funding # History: # Stan Smith 2017-08-31 refactored for mdJson schema 2.3 # Stan Smith 2017-03-20 original script require 'jbuilder' require_relative 'mdJson_allocation' require_relative 'mdJson_timePeriod' module ADIWG module Mdtranslator module Writers module MdJson module Funding @Namespace = ADIWG::Mdtranslator::Writers::MdJson def self.build(hFunding) Jbuilder.new do |json| json.description hFunding[:description] json.timePeriod TimePeriod.build(hFunding[:timePeriod]) unless hFunding[:timePeriod].empty? json.allocation @Namespace.json_map(hFunding[:allocations], Allocation) end end # build end # Funding end end end end
Version data entries
42 entries across 42 versions & 1 rubygems