Class: SequencescapeExcel::SpecialisedField::SampleEbiAccessionNumber
- Inherits:
-
Object
- Object
- SequencescapeExcel::SpecialisedField::SampleEbiAccessionNumber
- Includes:
- Base
- Defined in:
- app/sequencescape_excel/sequencescape_excel/specialised_field/sample_ebi_accession_number.rb
Overview
The accession number should only be updated if it is currently null or it is the same If the accession number differs from the current one the world will come crashing down.
Instance Attribute Summary
Attributes included from Base
#sample_manifest_asset, #value
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#update(_attributes = {}) ⇒ Object
13 14 15 16 17 |
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/sample_ebi_accession_number.rb', line 13 def update(_attributes = {}) return if value.blank? sample..sample_ebi_accession_number ||= value if valid? end |