Module: ADIWG::Mdtranslator::Writers::MdJson::Funding

Defined in:
lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb

Class Method Summary collapse

Class Method Details

.build(hFunding) ⇒ Object



20
21
22
23
24
25
26
27
28
# 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