Class: UatActions::GenerateTaggedPlates

Inherits:
GeneratePlates show all
Defined in:
app/uat_actions/uat_actions/generate_tagged_plates.rb

Overview

Will construct plates with well_count wells filled with samples

Constant Summary collapse

EXCLUDED_WALKING =

These walking algorithms have dependencies on submission and do not make sense here.

['wells in pools', 'manual by pool'].freeze

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

.defaultObject


59
60
61
62
63
64
65
66
67
68
69
# File 'app/uat_actions/uat_actions/generate_tagged_plates.rb', line 59

def self.default
  new(
    plate_count: 1,
    well_count: 96,
    study_name: UatActions::StaticRecords.study.name,
    plate_purpose_name: PlatePurpose.stock_plate_purpose.name,
    well_layout: 'Column',
    direction: 'column',
    walking_by: 'wells of plate'
  )
end

Instance Method Details

#performObject


71
72
73
74
75
76
77
78
79
80
81
82
# File 'app/uat_actions/uat_actions/generate_tagged_plates.rb', line 71

def perform
  super do |plate|
    TagLayout.create!(
      user: user,
      plate: plate,
      direction: direction,
      walking_by: walking_by,
      tag_group: tag_group,
      tag2_group: tag2_group
    )
  end
end