Sha256: 48c19c2488661986c3526eaa762dda78b116e640bd985a5342d05bce44cdb5af

Contents?: true

Size: 356 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/models/model_finder.rb
cqm-models-3.1.2 app/models/model_finder.rb
cqm-models-4.1.1 app/models/model_finder.rb
cqm-models-4.1.0 app/models/model_finder.rb
cqm-models-4.0.2 app/models/model_finder.rb
cqm-models-4.0.1 app/models/model_finder.rb
cqm-models-4.0.0 app/models/model_finder.rb
cqm-models-3.1.1 app/models/model_finder.rb
cqm-models-3.1.0 app/models/model_finder.rb
cqm-models-3.0.6 app/models/model_finder.rb
cqm-models-3.0.5 app/models/model_finder.rb
cqm-models-3.0.4 app/models/model_finder.rb
cqm-models-3.0.3 app/models/model_finder.rb
cqm-models-3.0.2 app/models/model_finder.rb
cqm-models-3.0.1 app/models/model_finder.rb