Class: NovaseqxPeValidator

Inherits:
ActiveModel::Validator
  • Object
show all
Defined in:
app/validators/novaseqx_pe_validator.rb

Overview

A custom batch creation validator for NovaSeqX PE pipeline

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.validation_infoObject

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