Class: BatchCreationValidator
- Inherits:
-
ActiveModel::Validator
- Object
- ActiveModel::Validator
- BatchCreationValidator
- Defined in:
- app/validators/batch_creation_validator.rb
Overview
Instance Method Summary collapse
Instance Method Details
#validate(record) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/validators/batch_creation_validator.rb', line 7 def validate(record) requests_have_same_read_length(record) requests_have_same_flowcell_type(record) batch_meets_minimum_size(record) all_requests_are_ready?(record) requests_have_same_target_purpose(record) end |