Sha256: 99bac156595e345d2dc146148a06358dc4491d2d2246499d0f155cd5f433a304

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

require 'jbuilder'
require_relative 'mdJson_scope'

module ADIWG
  module Mdtranslator
    module Writers
      module MdJson

        module DescriptiveResult
          def self.build(hResult)
            Jbuilder.new do |json|
              json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
              json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
              json.name hResult[:name] unless hResult[:name].nil?
              json.statement hResult[:statement] unless hResult[:statement].nil?
            end
          end

        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb