Class: CherrypickTask::PickTarget

Inherits:
Object
  • Object
show all
Defined in:
app/models/cherrypick_task/pick_target.rb

Overview

An instance of this class represents the target plate being picked onto. It can have a template and be a partial plate, and so when wells are picked into it we need to ensure that we don’t hit the template/partial wells.

Defined Under Namespace

Classes: Base, ByColumn, ByInterlacedColumn, ByRow

Class Method Summary collapse

Class Method Details

.for(plate_purpose) ⇒ Object



7
8
9
10
# File 'app/models/cherrypick_task/pick_target.rb', line 7

def self.for(plate_purpose)
  cherrypick_direction = plate_purpose.nil? ? 'column' : plate_purpose.cherrypick_direction
  const_get("by_#{cherrypick_direction}".classify)
end