module ADIWG::Mdtranslator::Writers::MdJson::Funding

Public Class Methods

build(hFunding) click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb, line 20
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