class Valigator::CSV::FieldValidators::Mandatory
Public Instance Methods
error_message()
click to toggle source
# File lib/valigator/csv/field_validators/mandatory.rb, line 18 def error_message 'Missing mandatory field' end
error_type()
click to toggle source
# File lib/valigator/csv/field_validators/mandatory.rb, line 12 def error_type 'missing_field' end
valid?(value)
click to toggle source
# File lib/valigator/csv/field_validators/mandatory.rb, line 6 def valid?(value) not blank? value end