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: %i[uuid_object barcodes] }.freeze

Instance Method Summary collapse

Methods included from ControlledDestinations

included

Methods inherited from Transfer

preview!, #validate_transfers

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

#transfersObject



28
29
30
# File 'app/models/transfer/between_plate_and_tubes.rb', line 28

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