Sha256: c423ac09d65fdeaab879c6518c06cc8f6ac465ef62b31f966e52338c80419d37
Contents?: true
Size: 1.16 KB
Versions: 23
Compression:
Stored size: 1.16 KB
Contents
# mdJson 2.0 writer - entity attribute # History: # Stan Smith 2017-03-19 refactored for mdJson/mdTranslator 2.0 # Josh Bradley original script require 'jbuilder' module ADIWG module Mdtranslator module Writers module MdJson module EntityAttribute def self.build(hAttribute) Jbuilder.new do |json| json.commonName hAttribute[:attributeName] json.codeName hAttribute[:attributeCode] json.alias hAttribute[:attributeAlias] unless hAttribute[:attributeAlias].empty? json.definition hAttribute[:attributeDefinition] json.dataType hAttribute[:dataType] json.allowNull hAttribute[:allowNull] json.allowMany hAttribute[:allowMany] json.units hAttribute[:unitOfMeasure] json.domainId hAttribute[:domainId] json.minValue hAttribute[:minValue] json.maxValue hAttribute[:maxValue] end end # build end # EntityAttribute end end end end
Version data entries
23 entries across 23 versions & 1 rubygems