Class: Dragnet::Validators::Fields::FilesValidator
- Inherits:
-
FieldValidator
- Object
- FieldValidator
- Dragnet::Validators::Fields::FilesValidator
- Defined in:
- lib/dragnet/validators/fields/files_validator.rb
Overview
Validates the files field on a Manual Test Record
Instance Method Summary collapse
-
#validate(key, value) ⇒ Array<String>?
Validates the MTR's
files
array.
Instance Method Details
#validate(key, value) ⇒ Array<String>?
Validates the MTR's files
array.
17 18 19 20 21 22 23 24 25 |
# File 'lib/dragnet/validators/fields/files_validator.rb', line 17 def validate(key, value) return unless value validate_type(key, value, String, Array) value = *value validate_array_types(key, value, String) value end |