Class: PooledPlateCreation

Inherits:
AssetCreation show all
Includes:
PlateCreation::Children
Defined in:
app/models/pooled_plate_creation.rb

Overview

Creating an instance of this class causes a child plate, with the specified plate type, to be created from the parent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PlateCreation::Children

included

Methods inherited from AssetCreation

#create_ancestor_asset!, #multiple_purposes

Methods included from Asset::Ownership::ChangesOwner

included

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Attribute Details

#sanger_barcodeObject

Returns the value of attribute sanger_barcode.



7
8
9
# File 'app/models/pooled_plate_creation.rb', line 7

def sanger_barcode
  @sanger_barcode
end

Instance Method Details

#parentObject



16
17
18
# File 'app/models/pooled_plate_creation.rb', line 16

def parent
  parents.first
end