Class: CaTissue::AbstractSpecimen::SpecimenClass

Inherits:
Object
  • Object
show all
Defined in:
lib/catissue/domain/abstract_specimen.rb

Constant Summary collapse

TISSUE =
'Tissue'
FLUID =
'Fluid'
MOLECULAR =
'Molecular'
CELL =
'Cell'
EXTENT =
Set.new([TISSUE, FLUID, MOLECULAR, CELL])
UNIT_HASH =
{TISSUE => 'gm', FLUID => 'ml', MOLECULAR => 'ug'}

Class Method Summary collapse

Class Method Details

.include?(value) ⇒ Boolean

Returns whether the value is an accepted tissue class value.

Returns:

  • (Boolean)

    whether the value is an accepted tissue class value



67
68
69
# File 'lib/catissue/domain/abstract_specimen.rb', line 67

def self.include?(value)
  EXTENT.include?(value)
end