EGI-FCTF/oneacct_export

View on GitHub
lib/data_validators/data_validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DataValidators
  # Interface class for data validator implementations
  class DataValidator
    # Validates data for specific output formate and sets default values if necessary.
    #
    # @param data [Hash] data to be validated
    # @return [Hash] data with default values set if necessary
    def validate_data(data = nil)
      fail Errors::NotImplementedError, "#{__method__} is just a stub!"
    end
  end
end