Class: SequencescapeExcel::SpecialisedField::BioscanSupplierName

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

Overview

BioscanSupplierName Same behaviour as base supplier name. Just need a specialised field in this case so we can link the validations from the bioscan control type to this field

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



14
15
16
17
18
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/bioscan_supplier_name.rb', line 14

def update(_attributes = {})
  return unless valid?

  sample..supplier_name = value if value.present?
end