Sha256: 05c1c1c6f5a3ef516ca6e331b4449166caeb7aee8505eb35c8615f738bccbbf4

Contents?: true

Size: 1.51 KB

Versions: 6

Compression:

Stored size: 1.51 KB

Contents

require_relative 'module_scope'
require_relative 'module_citation'

module ADIWG
  module Mdtranslator
    module Readers
      module MdJson

        module ConformanceResult

          def self.unpack(hConformanceResult, responseObj)

            intMetadataClass = InternalMetadata.new
            intConformanceResult = intMetadataClass.newConformanceResult

            # dateTime
            if hConformanceResult.has_key?('dateTime')
              intConformanceResult[:dateTime] = hConformanceResult['dateTime']
            end

            # scope
            if hConformanceResult.has_key?('scope')
              intConformanceResult[:scope] = Scope.unpack(hConformanceResult['scope'], responseObj)
            end

            # name
            if hConformanceResult.has_key?('name')
              intConformanceResult[:name] = hConformanceResult['name']
            end

            #specification
            if hConformanceResult.has_key?('specification')
              intConformanceResult[:specification] = Citation.unpack(hConformanceResult['specification'], responseObj)
            end

            # explanation
            if hConformanceResult.has_key?('explanation')
              intConformanceResult[:explanation] = hConformanceResult['explanation']
            end

            # pass
            if hConformanceResult.has_key?('pass')
              intConformanceResult[:pass] = hConformanceResult['pass']
            end

            return intConformanceResult
          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/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb