Class: FluidigmFile::FluidigmWell

Inherits:
Object
  • Object
show all
Defined in:
app/models/fluidigm_file.rb

Overview

rubocop:todo Style/Documentation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description) ⇒ FluidigmWell

Returns a new instance of FluidigmWell.


79
80
81
# File 'app/models/fluidigm_file.rb', line 79

def initialize(description)
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description


77
78
79
# File 'app/models/fluidigm_file.rb', line 77

def description
  @description
end

Instance Method Details

#add_assay(assay, marker) ⇒ Object


87
88
89
# File 'app/models/fluidigm_file.rb', line 87

def add_assay(assay, marker)
  marker_array << Assay.new(assay, marker)
end

#countObject


91
92
93
# File 'app/models/fluidigm_file.rb', line 91

def count
  marker_array.count(&:pass?)
end

#gender_markersObject


83
84
85
# File 'app/models/fluidigm_file.rb', line 83

def gender_markers
  marker_array.select(&:gender_marker?).map(&:gender)
end