Class: LabwareCreators::MergedPlate
- Inherits:
-
StampedPlate
- Object
- Base
- StampedPlate
- LabwareCreators::MergedPlate
- 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
-
#barcodes ⇒ Object
Returns the value of attribute barcodes.
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#minimal_barcodes ⇒ Object
readonly
Returns the value of attribute minimal_barcodes.
Instance Method Summary collapse
-
#expected_source_purposes ⇒ Array
Returns the source plate purposes for use in the help view.
-
#help_text ⇒ String
Returns specific help text to display to the user for this specific use case.
- #labware_wells ⇒ Object
- #parent ⇒ Object included from SupportParent::PlateOnly
Constructor Details
This class inherits a constructor from LabwareCreators::Base
Instance Attribute Details
#barcodes ⇒ Object
Returns the value of attribute barcodes.
9 10 11 |
# File 'app/models/labware_creators/merged_plate.rb', line 9 def @barcodes end |
#child ⇒ Object (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_barcodes ⇒ Object (readonly)
Returns the value of attribute minimal_barcodes.
9 10 11 |
# File 'app/models/labware_creators/merged_plate.rb', line 9 def @minimal_barcodes end |
Instance Method Details
#expected_source_purposes ⇒ Array
Returns the source plate purposes for use in the help view.
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_text ⇒ String
Returns specific help text to display to the user for this specific use case.
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_wells ⇒ Object
22 23 24 |
# File 'app/models/labware_creators/merged_plate.rb', line 22 def labware_wells source_plates.flat_map(&:wells) end |