Class: ElementAvitiSequencingRequest::ElementAvitiRequestOptionsValidator
- Inherits:
-
DelegateValidation::Validator
- Object
- DelegateValidation::Validator
- ElementAvitiSequencingRequest::ElementAvitiRequestOptionsValidator
- 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_type ⇒ Object
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 |