module ADIWG::Mdtranslator::Writers::MdJson::Identifier

Public Class Methods

build(hIdentifier) click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_identifier.rb, line 18
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