Class: Qonfig::Validation::Building::InstanceBuilder::AttributesConsistency Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/validation/building/instance_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.

rubocop:disable Metrics/ClassLength

Since:

  • 0.20.0

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setting_key_pattern, predefined_validator, runtime_validation_method, strict, 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.20.0



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/qonfig/validation/building/instance_builder/attribute_consistency.rb', line 42

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

Class Method Details

.check!(setting_key_pattern, predefined_validator, runtime_validation_method, strict, 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)
  • strict (Boolean)
  • validation_logic (Proc, NilClass)

Since:

  • 0.20.0



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/qonfig/validation/building/instance_builder/attribute_consistency.rb', line 17

def check!(
  setting_key_pattern,
  predefined_validator,
  runtime_validation_method,
  strict,
  validation_logic
)
  new(
    setting_key_pattern,
    predefined_validator,
    runtime_validation_method,
    strict,
    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.20.0



62
63
64
65
66
67
68
69
# File 'lib/qonfig/validation/building/instance_builder/attribute_consistency.rb', line 62

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