Class: SequencescapeExcel::SpecialisedField::InsertSizeTo
- Inherits:
-
Object
- Object
- SequencescapeExcel::SpecialisedField::InsertSizeTo
- 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
Methods included from Base
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 |