Sha256: 5edbfabb2da50f2ef8e78268e1e04ac77e9979f1bcc076d78b50523a49c0f63e
Contents?: true
Size: 710 Bytes
Versions: 15
Compression:
Stored size: 710 Bytes
Contents
require 'jbuilder' module ADIWG module Mdtranslator module Writers module MdJson module Domain def self.build(intObj) Jbuilder.new do |json| json.domainId(intObj[:domainId]) json.commonName intObj[:domainName] json.codeName intObj[:domainCode] json.description intObj[:domainDescription] json.member(intObj[:domainItems]) do |mem| json.name mem[:itemName] json.value mem[:itemValue] json.definition mem[:itemDefinition] end unless intObj[:domainItems].empty? end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems