Class: Robots::Bed::Splitting

Inherits:
Base
  • Object
show all
Defined in:
app/models/robots/bed/splitting.rb

Overview

Splitting robots are specific to plates

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentsObject

Returns the value of attribute parents.



6
7
8
# File 'app/models/robots/bed/splitting.rb', line 6

def parents
  @parents
end

Instance Method Details

#child_labwareObject



15
16
17
18
19
# File 'app/models/robots/bed/splitting.rb', line 15

def child_labware
  return [] if labware.nil?

  @child_labware ||= child_labware_of_plate
end

#find_all_labwareObject



8
9
10
11
12
13
# File 'app/models/robots/bed/splitting.rb', line 8

def find_all_labware
  Sequencescape::Api::V2::Plate.find_all(
    { barcode: @barcodes },
    includes: [:purpose, { wells: :downstream_plates }]
  )
end