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.

Defined Under Namespace

Classes: ParentAssociation

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

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Attribute Details

#barcodeObject

Returns the value of attribute barcode


10
11
12
# File 'app/models/pooled_plate_creation.rb', line 10

def barcode
  @barcode
end

Instance Method Details

#parentObject


19
20
21
# File 'app/models/pooled_plate_creation.rb', line 19

def parent
  parents.first
end