Class: SequencescapeExcel::SpecialisedField::PrimerPanel

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
app/sequencescape_excel/sequencescape_excel/specialised_field/primer_panel.rb

Overview

The primer panel must exist in the primer_panels table and is identified by its name. It is set as an association on aliquot.

Instance Attribute Summary

Attributes included from Base

#sample_manifest_asset, #value

Instance Method Summary collapse

Methods included from Base

#link

Instance Method Details

#update(attributes = {}) ⇒ Object


13
14
15
16
17
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/primer_panel.rb', line 13

def update(attributes = {})
  return unless valid? && attributes[:aliquot].present?

  aliquots.each { |aliquot| aliquot.primer_panel = primer_panel }
end