Sha256: 2252e1c817d70acd98ba73ed01ed59896fa87f0c60a956d923cfed592ae5d48f
Contents?: true
Size: 997 Bytes
Versions: 32
Compression:
Stored size: 997 Bytes
Contents
# mdJson 2.0 writer tests - identifier # History: # Stan Smith 2018-10-18 added 'name' for projectionIdentifier & gridIdentifier # Stan Smith 2017-03-13 refactored for mdJson/mdTranslator 2.0 # Josh Bradley original script require 'jbuilder' require_relative 'mdJson_citation' module ADIWG module Mdtranslator module Writers module MdJson module Identifier def self.build(hIdentifier) Jbuilder.new do |json| json.identifier hIdentifier[:identifier] json.namespace hIdentifier[:namespace] json.version hIdentifier[:version] json.name hIdentifier[:name] json.description hIdentifier[:description] json.authority Citation.build(hIdentifier[:citation]) unless hIdentifier[:citation].empty? end end# build end # Identifier end end end end
Version data entries
32 entries across 32 versions & 1 rubygems