Sha256: bfbcd51784012731c8899739b31422453a7750045b69f941044057420d9798e2

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

module QDM
  # Find the right datatype model.
  class ModelFinder
    @hqmfOidToDatatypeMap = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'hqmfOid_to_datatype_map.json')))

    def self.by_hqmf_oid(hqmfOid)
      datatype = @hqmfOidToDatatypeMap[hqmfOid]
      return nil if datatype.nil?
      return QDM.const_get(datatype)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cqm-models-2.0.1 app/models/model_finder.rb
cqm-models-3.0.0 app/models/model_finder.rb
cqm-models-2.0.0 app/models/model_finder.rb
cqm-models-1.1.1.0 app/models/model_finder.rb