Sha256: ade8b29179472a4cf061992baebfe0f01e9d867813607c7aecc9aa0ade7c93e7

Contents?: true

Size: 970 Bytes

Versions: 6

Compression:

Stored size: 970 Bytes

Contents

require 'jbuilder'
require_relative 'mdJson_scope'
require_relative 'mdJson_citation'

module ADIWG
  module Mdtranslator
    module Writers
      module MdJson

        module ConformanceResult
          def self.build(hConformanceResult)
            Jbuilder.new do |json|
              json.dateTime hConformanceResult[:dateTime] unless hConformanceResult[:dateTime].nil?
              json.scope Scope.build(hConformanceResult[:scope]) unless hConformanceResult[:scope].empty?
              json.name hConformanceResult[:name] unless hConformanceResult[:name].nil?
              json.specification Citation.build(hConformanceResult[:specification]) unless hConformanceResult[:specification].empty?
              json.explanation hConformanceResult[:explanation] unless hConformanceResult[:explanation].nil?
              json.pass hConformanceResult[:pass] unless hConformanceResult[:pass].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_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb