Sha256: 20625ef535047590d17cc5a890522563a5841570d6dc9c043481ec8d3382e545
Contents?: true
Size: 871 Bytes
Versions: 19
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.allocation @Namespace.json_map(hFunding[:allocations], Allocation) json.timePeriod TimePeriod.build(hFunding[:timePeriod]) unless hFunding[:timePeriod].empty? json.description hFunding[:description] end end # build end # Funding end end end end
Version data entries
19 entries across 19 versions & 1 rubygems