Module: CdIncluder

Included in:
Classification, CtTile, Density, Histogram, ImTile, Original, StatResults, Statistic, Test
Defined in:
lib/data_struct.rb

Overview

Enables all Mongo classes listed below to have instances capable their own CD quicly

Instance Method Summary collapse

Instance Method Details

#get_cdObject



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/data_struct.rb', line 25

def get_cd
  puts self.cd_type
  if (self.cd_type and self.case_n) != nil 
    cd= Cd.get(self.cd_type, self.case_n)
  end
  puts cd
  if cd
    self.cd=cd
  end
  self.save
end