Sha256: 6c504ca18a9bdb598e57c0565572644e05d16db1e72fad02fa79813909d14941

Contents?: true

Size: 994 Bytes

Versions: 17

Compression:

Stored size: 994 Bytes

Contents

require_relative 'module_scope'

module ADIWG
  module Mdtranslator
    module Readers
      module MdJson

        module DescriptiveResult
          def self.unpack(hResult, responseObj, inContext = nil)
            @MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson

            if hResult.empty?
              @MessagePath.issueWarning(80, responseObj, inContext)
              return nil
            end

            intMetadataClass = InternalMetadata.new
            intResult = intMetadataClass.newDescriptiveResult

            if hResult.has_key?('dateTime')
              intResult[:dateTime] = hResult['dateTime']
            end

            if hResult.has_key?('scope')
              intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
            end

            if hResult.has_key?('statement')
              intResult[:statement] = hResult['statement']
            end

            return intResult
          end
        end

      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb