Sha256: 1b44ebbe109885a918ac5392e3a971fd8ce8b3a10997fd73cf8e119c0564024b

Contents?: true

Size: 753 Bytes

Versions: 15

Compression:

Stored size: 753 Bytes

Contents

# mdJson 2.0 writer - funding

# History:
#   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?
                  end

               end # build
            end # Funding

         end
      end
   end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc11 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc10 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb
adiwg-mdtranslator-2.0.0rc2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb