Class: SequencescapeExcel::SpecialisedField::TagIndex
- Inherits:
-
Object
- Object
- SequencescapeExcel::SpecialisedField::TagIndex
- Includes:
- Base, ValueToInteger
- Defined in:
- app/sequencescape_excel/sequencescape_excel/specialised_field/tag_index.rb
Overview
TagIndex
Instance Attribute Summary collapse
-
#sf_tag_group ⇒ Object
Returns the value of attribute sf_tag_group.
Attributes included from Base
#sample_manifest_asset, #value
Instance Method Summary collapse
Methods included from ValueToInteger
Instance Attribute Details
#sf_tag_group ⇒ Object
Returns the value of attribute sf_tag_group.
11 12 13 |
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/tag_index.rb', line 11 def sf_tag_group @sf_tag_group end |
Instance Method Details
#link(other_fields) ⇒ Object
21 22 23 |
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/tag_index.rb', line 21 def link(other_fields) self.sf_tag_group = other_fields[SequencescapeExcel::SpecialisedField::TagGroup] end |
#update(_attributes = {}) ⇒ Object
15 16 17 18 19 |
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/tag_index.rb', line 15 def update(_attributes = {}) return unless valid? aliquots.each { |aliquot| aliquot.tag = tag } if tag.present? && tag.oligo.present? end |