Sha256: adc56855f20fb9c104419fa3a23937fadbeac08ecc68d4536817a676776cc435

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 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

            #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

7 entries across 7 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb