Class: Transfer::BetweenPlateAndTubes

Inherits:
Transfer show all
Includes:
ControlledDestinations
Defined in:
app/models/transfer/between_plate_and_tubes.rb

Defined Under Namespace

Classes: WellToTube

Constant Summary collapse

DESTINATION_INCLUDES =
{
  destination: [
    :uuid_object,
    :barcodes
  ]
}

Instance Method Summary collapse

Methods included from ControlledDestinations

included

Methods inherited from Transfer

preview!

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 Method Details

#transfersObject


32
33
34
35
36
# File 'app/models/transfer/between_plate_and_tubes.rb', line 32

def transfers
  well_to_tubes.include_destination.each_with_object({}) do |t, hash|
    hash[t.source] = tube_to_hash(t.destination)
  end
end