Sha256: 5e50e2a5b510b70627d09d3dffca58b92dd0c96bb244b76a6c4b409d5c286584
Contents?: true
Size: 651 Bytes
Versions: 4
Compression:
Stored size: 651 Bytes
Contents
require 'jbuilder' module ADIWG module Mdtranslator module Writers module SbJson module Identifier def self.build(intObj) Jbuilder.new do |json| json.type intObj[:identifierType] json.scheme intObj[:identifierNamespace] || unless intObj[:identifierCitation].empty? intObj[:identifierCitation][:citOlResources][0][:olResURI] unless intObj[:identifierCitation][:citOlResources].empty? end json.key intObj[:identifier] end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems