Sha256: dc94ad8a254f19b8b46856b70889c75b45dd52e62f0bc10568eb680cdd92b7be

Contents?: true

Size: 1.37 KB

Versions: 10

Compression:

Stored size: 1.37 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, inContext = nil)

            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

10 entries across 10 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb