Class: SequencescapeExcel::SpecialisedField::Priority

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

Overview

Specialised field for priority

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



12
13
14
15
16
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/priority.rb', line 12

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

  sample.priority = value if value.present?
end