Class: Cd
- Inherits:
-
Object
- Object
- Cd
- Includes:
- DataUtilities, MongoMapper::Document
- Defined in:
- lib/data_struct.rb
Class Method Summary collapse
-
.get(cd_type, case_n) ⇒ Object
either get a brand new cd with its own Immunoscore Results instance of find a preexisting one.
Methods included from DataUtilities
Class Method Details
.get(cd_type, case_n) ⇒ Object
either get a brand new cd with its own Immunoscore Results instance of find a preexisting one
89 90 91 92 93 |
# File 'lib/data_struct.rb', line 89 def self.get cd_type, case_n self.find_by_cd_type_and_case_n(cd_type,case_n) or self.create(:case_n=>case_n, :cd_type=>cd_type, :immuno_score_results_id=>ImmunoScoreResults.get(case_n)._id) end |