Sha256: 88bea24a3816738c6e1c660f2d0efb328a0222513060abe930bd0e5b4273028d
Contents?: true
Size: 709 Bytes
Versions: 15
Compression:
Stored size: 709 Bytes
Contents
require 'jbuilder' require_relative 'mdJson_citation' module ADIWG module Mdtranslator module Writers module MdJson module AssociatedResource def self.build(intObj) Jbuilder.new do |json| json.associationType intObj[:associationType] json.initiativeType intObj[:initiativeType] json.resourceType intObj[:resourceType] json.resourceCitation Citation.build(intObj[:resourceCitation]) unless intObj[:resourceCitation].empty? json.metadataCitation Citation.build(intObj[:metadataCitation]) unless intObj[:metadataCitation].empty? end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems