Class: Sequencescape::Plate

Inherits:
Asset show all
Includes:
Behaviour::Barcoded, Behaviour::Labeled, Behaviour::Qced, Behaviour::StateDriven, Pooling, WellStructure
Defined in:
lib/sequencescape/plate.rb

Defined Under Namespace

Modules: CommentsCreation, CurrentVolumeSubstraction, Pooling, UpdateExtractionAttributes, WellStructure

Instance Method Summary collapse

Methods included from Behaviour::Qced

included

Methods included from Behaviour::Labeled

included

Methods included from Pooling

#populate_wells_with_pool, #populate_wells_with_pre_cap_group

Methods included from WellStructure

#columns, #locations_in_rows, #rows

Methods included from Behaviour::StateDriven

included

Methods included from Behaviour::Barcoded

included

Methods inherited from Api::Resource

#initialize, is_a_proxied_model?

Methods included from Api::Resource::Attributes

extended

Methods included from Api::Resource::Groups

#attribute_group, extended

Methods included from Api::Associations

extended

Methods included from Api::Composition

#composed_of

Methods included from Api::Actions

extended

Methods included from Api::Resource::Json

#as_json, #changed?, #coerce_to, included

Methods included from Api::ErrorHandling

included

Methods included from Api::Resource::Modifications

#initialize, #save!, #update_attributes!

Methods included from Api::Resource::InstanceMethods

#eql?, included, #initialize

Methods included from Api::Resource::ActiveModel

included, #persisted?

Constructor Details

This class inherits a constructor from Sequencescape::Api::Resource

Instance Method Details

#creation_transferObject

Provides backwards compatability



68
69
70
71
72
73
74
# File 'lib/sequencescape/plate.rb', line 68

def creation_transfer
  Rails.logger.warn 'Creation transfer is deprecated, use creation_transfers instead'
  transfers_found = creation_transfers.count
  return creation_transfers.first if transfers_found == 1

  raise Sequencescape::Api::Error, "Unexpected number of transfers found: #{transfers_found} found, 1 expected."
end