Class: ElementAvitiSequencingRequest::ElementAvitiRequestOptionsValidator

Inherits:
DelegateValidation::Validator show all
Defined in:
app/models/element_aviti_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



44
45
46
47
48
# File 'app/models/element_aviti_sequencing_request.rb', line 44

def validate_read_length_by_selected_flowcell_type
  return unless requested_flowcell_type == 'LO' && read_length.to_i != 150

  errors.add(:read_length, 'For the LO (Low Output) flowcell kit the user can select a Read Length of 150')
end