Class: UatActions::GenerateTagPlates
- Inherits:
-
UatActions
- Object
- UatActions
- UatActions::GenerateTagPlates
- Defined in:
- app/uat_actions/uat_actions/generate_tag_plates.rb
Overview
Will construct plates with well_count wells filled with samples
Constant Summary
Constants inherited from UatActions
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from UatActions
all, category, find, form_field, form_fields, #form_fields, grouped_and_sorted_uat_actions, id, inherited, permitted, #report, #save, to_partial_path, uat_actions
Class Method Details
.default ⇒ Object
34 35 36 |
# File 'app/uat_actions/uat_actions/generate_tag_plates.rb', line 34 def self.default new(plate_count: 4) end |
Instance Method Details
#perform ⇒ Object
38 39 40 41 42 43 44 |
# File 'app/uat_actions/uat_actions/generate_tag_plates.rb', line 38 def perform qcc = QcableCreator.create!(lot: lot, user: user, count: plate_count.to_i) qcc.qcables.each_with_index do |qcable, index| qcable.update!(state: 'available') report["tag_plate_#{index}"] = qcable.asset. end end |