Sha256: 841b76d20c0848652216a7dac59a69eddfdf6304f6da8a78958dd25756186eea

Contents?: true

Size: 785 Bytes

Versions: 6

Compression:

Stored size: 785 Bytes

Contents

require 'jbuilder'
require_relative 'mdJson_scope'

module ADIWG
  module Mdtranslator
    module Writers
      module MdJson

        module QuantitativeResult
          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.value hResult[:values] unless hResult[:values].empty?
              json.valueUnits hResult[:valueUnits] unless hResult[:valueUnits].nil?
              json.valueRecordType hResult[:valueRecordType] unless hResult[:valueRecordType].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_quantitativeResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb