Sha256: 459c8a58ce453438dca8d16400699f3262f2e2bb571e0db9ccaccb2b0d79455c

Contents?: true

Size: 1.36 KB

Versions: 10

Compression:

Stored size: 1.36 KB

Contents

require 'jbuilder'
require_relative 'mdJson_conformanceResult'
require_relative 'mdJson_descriptiveResult'
require_relative 'mdJson_qualityMeasure'
require_relative 'mdJson_quantitativeResult'
require_relative 'mdJson_evaluationMethod'

module ADIWG
  module Mdtranslator
    module Writers
      module MdJson

        module DataQualityReport

          @Namespace = ADIWG::Mdtranslator::Writers::MdJson

          def self.build(hReport)
            Jbuilder.new do |json|
              json.type hReport[:type]
              json.conformanceResult @Namespace.json_map(hReport[:conformanceResult], ConformanceResult) unless hReport[:conformanceResult].nil? || hReport[:conformanceResult].empty? 
              json.descriptiveResult @Namespace.json_map(hReport[:descriptiveResult], DescriptiveResult) unless hReport[:descriptiveResult].nil? || hReport[:descriptiveResult].empty? 
              json.evaluationMethod EvaluationMethod.build(hReport[:evaluationMethod]) unless hReport[:evaluationMethod].nil?
              json.qualityMeasure QualityMeasure.build(hReport[:qualityMeasure]) unless hReport[:qualityMeasure].nil?
              json.quantitativeResult @Namespace.json_map(hReport[:quantitativeResult], QuantitativeResult) unless hReport[:quantitativeResult].nil? || hReport[:quantitativeResult].empty? 

            end
          end

        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQualityReport.rb