Class: DataValidators::DataValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/data_validators/data_validator.rb

Overview

Interface class for data validator implementations

Direct Known Subclasses

ApelDataValidator, PbsDataValidator

Instance Method Summary collapse

Instance Method Details

#validate_data(data = nil) ⇒ Hash

Validates data for specific output formate and sets default values if necessary.

Parameters:

  • data (Hash) (defaults to: nil)

    data to be validated

Returns:

  • (Hash)

    data with default values set 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