Module: HasPrimerPanel
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/has_primer_panel.rb
Overview
Add support for displaying information about primer panels
Defined Under Namespace
Classes: NullPanel
Instance Method Summary collapse
-
#panel_name ⇒ String
The name of the primer panel specified on the submission.
-
#pcr_duration ⇒ String
Human readable duration of the PCR program.
-
#pcr_program ⇒ String
The pcr program that the user should use based on the selected primer panel.
- #primer_panel ⇒ Object
Instance Method Details
#panel_name ⇒ String
The name of the primer panel specified on the submission
33 34 35 |
# File 'app/models/concerns/has_primer_panel.rb', line 33 def panel_name primer_panel.name end |
#pcr_duration ⇒ String
Human readable duration of the PCR program
53 54 55 |
# File 'app/models/concerns/has_primer_panel.rb', line 53 def pcr_duration "#{primer_panel.program_duration_for(stage)} minutes" end |
#pcr_program ⇒ String
The pcr program that the user should use based on the selected primer panel
43 44 45 |
# File 'app/models/concerns/has_primer_panel.rb', line 43 def pcr_program primer_panel.program_name_for(stage) end |
#primer_panel ⇒ Object
23 24 25 |
# File 'app/models/concerns/has_primer_panel.rb', line 23 def primer_panel labware.primer_panel || NullPanel.new end |