Class: NovaseqxPeValidator
- Inherits:
-
ActiveModel::Validator
- Object
- ActiveModel::Validator
- NovaseqxPeValidator
- Defined in:
- app/validators/novaseqx_pe_validator.rb
Overview
A custom batch creation validator for NovaSeqX PE pipeline
Class Method Summary collapse
-
.validation_info ⇒ Object
Used in _pipeline_limit.html to display custom validation warnings.
Instance Method Summary collapse
Class Method Details
.validation_info ⇒ Object
Used in _pipeline_limit.html to display custom validation warnings
10 11 12 |
# File 'app/validators/novaseqx_pe_validator.rb', line 10 def self.validation_info 'Requests must be selected in pairs for 1.5B flowcells and in groups of 8 for 10B and 25B flowcells.' end |
Instance Method Details
#validate(record) ⇒ Object
5 6 7 |
# File 'app/validators/novaseqx_pe_validator.rb', line 5 def validate(record) batch_size_for_flowcell_type(record) end |