Module: ADIWG::Mdtranslator::Writers::MdJson::Voucher

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

Class Method Summary collapse

Class Method Details

.build(hVoucher) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_voucher.rb', line 16

def self.build(hVoucher)

   Jbuilder.new do |json|
      json.specimen hVoucher[:specimen]
      json.repository ResponsibleParty.build(hVoucher[:repository]) unless hVoucher[:repository].empty?
   end

end