Class: SequencescapeExcel::SpecialisedField::InsertSizeFrom

Inherits:
Object
  • Object
show all
Includes:
Base, ValueRequired, ValueToInteger
Defined in:
app/sequencescape_excel/sequencescape_excel/specialised_field/insert_size_from.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
20
21
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/insert_size_from.rb', line 15

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

  aliquots.each do |aliquot|
    aliquot.insert_size_from = value
  end
end