Class: DataValidators::DataValidator
- Inherits:
-
Object
- Object
- DataValidators::DataValidator
- Defined in:
- lib/data_validators/data_validator.rb
Overview
Interface class for data validator implementations
Direct Known Subclasses
Instance Method Summary collapse
-
#validate_data(data = nil) ⇒ Hash
Validates data for specific output formate and sets default values if necessary.
Instance Method Details
#validate_data(data = nil) ⇒ Hash
Validates data for specific output formate and sets default values if necessary.
8 9 10 |
# File 'lib/data_validators/data_validator.rb', line 8 def validate_data(data = nil) fail Errors::NotImplementedError, "#{__method__} is just a stub!" end |