Class: SequencescapeExcel::SpecialisedField::InsertSizeTo

Inherits:
Object
  • Object
show all
Includes:
Base, ValueRequired, ValueToInteger
Defined in:
app/sequencescape_excel/sequencescape_excel/specialised_field/insert_size_to.rb

Overview

A required value which needs to be converted to an integer. Updated in the aliquot.

Instance Attribute Summary

Attributes included from Base

#sample_manifest_asset, #value

Instance Method Summary collapse

Methods included from ValueToInteger

#value=

Methods included from Base

#link

Instance Method Details

#update(_attributes = {}) ⇒ Object



15
16
17
18
19
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/insert_size_to.rb', line 15

def update(_attributes = {})
  return unless valid? && aliquots.present?

  aliquots.each { |aliquot| aliquot.insert_size_to = value }
end