Module: HasPrimerPanel

Extended by:
ActiveSupport::Concern
Included in:
LabwareCreators::PlateWithPrimerPanel, Presenters::MinimalPcrPlatePresenter
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

Instance Method Details

#panel_nameString

The name of the primer panel specified on the submission

Returns:

  • (String)

    The specified primer panel



33
34
35
# File 'app/models/concerns/has_primer_panel.rb', line 33

def panel_name
  primer_panel.name
end

#pcr_durationString

Human readable duration of the PCR program

Returns:

  • (String)

    Duration of the configured program, eg. 45 minutes



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_programString

The pcr program that the user should use based on the selected primer panel

Returns:

  • (String)

    The pcr program the user should select



43
44
45
# File 'app/models/concerns/has_primer_panel.rb', line 43

def pcr_program
  primer_panel.program_name_for(stage)
end

#primer_panelObject



23
24
25
# File 'app/models/concerns/has_primer_panel.rb', line 23

def primer_panel
  labware.primer_panel || NullPanel.new
end