Class: Qonfig::Validator::Builder::AttributeConsistency Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/validator/builder/attribute_consistency.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.13.0

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setting_key_pattern, predefined_validator, runtime_validation_method, validation_logic) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • setting_key_pattern (String, Symbol, NilClass)
  • predefined_validator (String, Symbol, NilClass)
  • runtime_validation_method (String, Symbol, NilClass)
  • validation_logic (Proc, NilClass)

Since:

  • 0.13.0



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/qonfig/validator/builder/attribute_consistency.rb', line 38

def initialize(
  setting_key_pattern,
  predefined_validator,
  runtime_validation_method,
  validation_logic
)
  @setting_key_pattern = setting_key_pattern
  @predefined_validator = predefined_validator
  @runtime_validation_method = runtime_validation_method
  @validation_logic = validation_logic
end

Class Method Details

.check!(setting_key_pattern, predefined_validator, runtime_validation_method, validation_logic) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • setting_key_pattern (String, Symbol, NilClass)
  • predefined_validator (String, Symbol, NilClass)
  • runtime_validation_method (String, Symbol, NilClass)
  • validation_logic (Proc, NilClass)

Since:

  • 0.13.0



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/qonfig/validator/builder/attribute_consistency.rb', line 15

def check!(
  setting_key_pattern,
  predefined_validator,
  runtime_validation_method,
  validation_logic
)
  new(
    setting_key_pattern,
    predefined_validator,
    runtime_validation_method,
    validation_logic
  ).check!
end

Instance Method Details

#check!void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Raises:

Since:

  • 0.13.0



56
57
58
59
60
61
62
# File 'lib/qonfig/validator/builder/attribute_consistency.rb', line 56

def check!
  consistent_method_choice!
  consistent_predefined_validator!
  cosnistent_runtime_validation_method!
  consistent_validation_logic!
  consistent_setting_key_pattern!
end