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

Version Path
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_identifier.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_identifier.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_identifier.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_identifier.rb