Class: TagGroup::AdapterType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- TagGroup::AdapterType
- Defined in:
- app/models/tag_group/adapter_type.rb
Overview
AdapterType is a property of a TagGroup which determines how the tag sequence interacts with the Sequencing process. It is recorded in Sequencescape as it can affect which processes a tag group is suitable for, and thus can be used to filter lists of validate selections.
Constant Summary collapse
- UNSPECIFIED =
'Unspecified'
Instance Method Summary collapse
Methods inherited from ApplicationRecord
convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Methods included from Warren::BroadcastMessages
#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren
Instance Method Details
#name_is_not_reserved ⇒ Object
15 16 17 18 19 |
# File 'app/models/tag_group/adapter_type.rb', line 15 def name_is_not_reserved return unless UNSPECIFIED.casecmp?(name) errors.add(:name, "cannot be '#{UNSPECIFIED}' as this is reserved.") end |