module ADIWG::Mdtranslator::Writers::MdJson::LegalConstraint
Public Class Methods
build(hLegal)
click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb, line 15 def self.build(hLegal) Jbuilder.new do |json| json.useConstraint hLegal[:useCodes] unless hLegal[:useCodes].empty? json.accessConstraint hLegal[:accessCodes] unless hLegal[:accessCodes].empty? json.otherConstraint hLegal[:otherCons] unless hLegal[:otherCons].empty? end end