Class: UatActions::GeneratePlateConcentrations

Inherits:
UatActions
  • Object
show all
Defined in:
app/uat_actions/uat_actions/generate_plate_concentrations.rb

Overview

Will generate concentrations for a given plate

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UatActions

all, find, form_field, form_fields, #form_fields, id, inherited, permitted, #report, #save, to_partial_path, uat_actions

Class Method Details

.defaultUatActions::GeneratePlateConcentrations

Returns a default copy of the UatAction which will be used to fill in the form, with values for the min and max concentrations.

Returns:


29
30
31
# File 'app/uat_actions/uat_actions/generate_plate_concentrations.rb', line 29

def self.default
  new(minimum_concentration: 0, maximum_concentration: 1000)
end

Instance Method Details

#performObject


38
39
40
41
42
# File 'app/uat_actions/uat_actions/generate_plate_concentrations.rb', line 38

def perform
  qc_assay_results = construct_qc_assay
  report['number_well_concentrations_written'] = qc_assay_results[:num_wells_written]
  qc_assay_results[:qc_assay_success]
end