Sha256: 5e0db503b0089e0d5e82e25262144652734f1275615b99dc6438ed7f564471fb

Contents?: true

Size: 713 Bytes

Versions: 57

Compression:

Stored size: 713 Bytes

Contents

# mdJson 2.0 writer - legal constraint

# History:
#   Stan Smith 2017-03-17 original script

require 'jbuilder'

module ADIWG
   module Mdtranslator
      module Writers
         module MdJson

            module LegalConstraint

               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 # build
            end # LegalConstraint

         end
      end
   end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.18.0rc1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.17.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.16.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.15.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.14.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.14.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.14.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb
adiwg-mdtranslator-2.13.3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_legalConstraint.rb