Class: CC::Config::Validation::FetchValidator
- Inherits:
-
Object
- Object
- CC::Config::Validation::FetchValidator
- Includes:
- HashValidations
- Defined in:
- lib/cc/config/validation/fetch_validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(data) ⇒ FetchValidator
constructor
A new instance of FetchValidator.
Methods included from HashValidations
#key_type_error_message, #validate_hash_data, #validate_key_type, #warn_unrecognized_keys
Constructor Details
#initialize(data) ⇒ FetchValidator
Returns a new instance of FetchValidator.
12 13 14 15 16 17 18 19 |
# File 'lib/cc/config/validation/fetch_validator.rb', line 12 def initialize(data) @data = data @errors = [] @warnings = [] validate end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
10 11 12 |
# File 'lib/cc/config/validation/fetch_validator.rb', line 10 def errors @errors end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
10 11 12 |
# File 'lib/cc/config/validation/fetch_validator.rb', line 10 def warnings @warnings end |