Class: CC::Config::Validation::CheckValidator

Inherits:
Object
  • Object
show all
Includes:
HashValidations
Defined in:
lib/cc/config/validation/check_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashValidations

#key_type_error_message, #validate_hash_data, #validate_key_type, #warn_unrecognized_keys

Constructor Details

#initialize(data) ⇒ CheckValidator

Returns a new instance of CheckValidator.



9
10
11
12
13
14
15
16
# File 'lib/cc/config/validation/check_validator.rb', line 9

def initialize(data)
  @data = data

  @errors = []
  @warnings = []

  validate
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



7
8
9
# File 'lib/cc/config/validation/check_validator.rb', line 7

def errors
  @errors
end

#warningsObject (readonly)

Returns the value of attribute warnings.



7
8
9
# File 'lib/cc/config/validation/check_validator.rb', line 7

def warnings
  @warnings
end