Class: FluidigmFile::FluidigmWell
- Inherits:
-
Object
- Object
- FluidigmFile::FluidigmWell
- Defined in:
- app/models/fluidigm_file.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
- #add_assay(assay, marker) ⇒ Object
- #count ⇒ Object
- #gender_markers ⇒ Object
-
#initialize(description) ⇒ FluidigmWell
constructor
A new instance of FluidigmWell.
Constructor Details
#initialize(description) ⇒ FluidigmWell
Returns a new instance of FluidigmWell.
61 62 63 |
# File 'app/models/fluidigm_file.rb', line 61 def initialize(description) @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
59 60 61 |
# File 'app/models/fluidigm_file.rb', line 59 def description @description end |
Instance Method Details
#add_assay(assay, marker) ⇒ Object
69 70 71 |
# File 'app/models/fluidigm_file.rb', line 69 def add_assay(assay, marker) marker_array << Assay.new(assay, marker) end |
#count ⇒ Object
73 74 75 |
# File 'app/models/fluidigm_file.rb', line 73 def count marker_array.count(&:pass?) end |
#gender_markers ⇒ Object
65 66 67 |
# File 'app/models/fluidigm_file.rb', line 65 def gender_markers marker_array.select(&:gender_marker?).map(&:gender) end |