Class: UatActions::GeneratePlateVolumes

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

Overview

Will generate volumes for a given plate

Constant Summary

Constants inherited from UatActions

CATEGORY_LIST

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UatActions

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

Class Method Details

.defaultUatActions::GeneratePlateVolumes

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

Returns:



35
36
37
# File 'app/uat_actions/uat_actions/generate_plate_volumes.rb', line 35

def self.default
  new(minimum_volume: 0, maximum_volume: 100)
end

Instance Method Details

#performObject



44
45
46
47
48
# File 'app/uat_actions/uat_actions/generate_plate_volumes.rb', line 44

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