Class: LabwareCreators::MergedPlate

Inherits:
StampedPlate show all
Includes:
CustomPage, SupportParent::PlateOnly
Defined in:
app/models/labware_creators/merged_plate.rb

Overview

Merges plates together into a single child plate, and de-duplicates aliquots if they are identical.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from LabwareCreators::Base

Instance Attribute Details

#barcodesObject

Returns the value of attribute barcodes.



9
10
11
# File 'app/models/labware_creators/merged_plate.rb', line 9

def barcodes
  @barcodes
end

#childObject (readonly)

Returns the value of attribute child.



9
10
11
# File 'app/models/labware_creators/merged_plate.rb', line 9

def child
  @child
end

#minimal_barcodesObject (readonly)

Returns the value of attribute minimal_barcodes.



9
10
11
# File 'app/models/labware_creators/merged_plate.rb', line 9

def minimal_barcodes
  @minimal_barcodes
end

Instance Method Details

#expected_source_purposesArray

Returns the source plate purposes for use in the help view.

Returns:

  • (Array)

    Purpose name strings.



31
32
33
# File 'app/models/labware_creators/merged_plate.rb', line 31

def expected_source_purposes
  Settings.purposes.dig(@purpose_uuid, :merged_plate).source_purposes
end

#help_textString

Returns specific help text to display to the user for this specific use case.

Returns:

  • (String)

    Some descriptive text.



40
41
42
# File 'app/models/labware_creators/merged_plate.rb', line 40

def help_text
  Settings.purposes.dig(@purpose_uuid, :merged_plate).help_text
end

#labware_wellsObject



22
23
24
# File 'app/models/labware_creators/merged_plate.rb', line 22

def labware_wells
  source_plates.flat_map(&:wells)
end

#parentObject Originally defined in module SupportParent::PlateOnly