Class: Dragnet::Validators::Fields::FieldValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/dragnet/validators/fields/field_validator.rb

Overview

Base class for all the validators used to validate individual fields inside entities.

Instance Method Summary collapse

Instance Method Details

#validate(_key, _value) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/dragnet/validators/fields/field_validator.rb', line 11

def validate(_key, _value)
  raise NotImplementedError, "#validate method not implemented in #{self.class}"
end