Sha256: 7abdeb10a0d5fbc501a6a6a2abeff7003e35f19ad650dd47083411f8a2f384b0

Contents?: true

Size: 1004 Bytes

Versions: 16

Compression:

Stored size: 1004 Bytes

Contents

require 'jbuilder'
require_relative 'mdJson_citation'

module ADIWG
  module Mdtranslator
    module Writers
      module MdJson

        module EvaluationMethod

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

          def self.build(hMethod)
            Jbuilder.new do |json|
              json.type hMethod[:type]
              json.dateTime hMethod[:dateTime]
              json.methodDescription hMethod[:methodDescription]
              json.evaluationProcedure Citation.build(hMethod[:evaluationProcedure])
              json.referenceDocument @Namespace.json_map(hMethod[:referenceDocument], Citation)
              json.evaluationMethodType hMethod[:evaluationMethodType]
              json.deductiveSource hMethod[:deductiveSource]
              json.samplingScheme hMethod[:samplingScheme]
              json.lotDescription hMethod[:lotDescription]
              json.samplingRatio hMethod[:samplingRatio]
            end
          end
        end

      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_evaluationMethod.rb