Class: NovaSeq6000PESequencingRequest::NovaSeq6000PERequestOptionsValidator

Inherits:
DelegateValidation::Validator show all
Defined in:
app/models/nova_seq_6000_p_e_sequencing_request.rb

Instance Method Summary collapse

Methods inherited from DelegateValidation::Validator

delegate_attribute, #initialize, name

Methods included from Validateable

append_features, #method_missing, #validate!

Constructor Details

This class inherits a constructor from DelegateValidation::Validator

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Validateable

Instance Method Details

#validate_read_length_by_selected_flowcell_typeObject



12
13
14
15
16
17
# File 'app/models/nova_seq_6000_p_e_sequencing_request.rb', line 12

def validate_read_length_by_selected_flowcell_type
  return unless requested_flowcell_type != 'SP' && read_length.to_i == 250

  errors.add(:read_length,
             'The user can only select a Read Length of 250 with the SP flowcell type for NovaSeq 6000 PE requests')
end