Class: Vanguard::Rule::Nullary::Confirmation
- Inherits:
-
Vanguard::Rule::Nullary
- Object
- Vanguard::Rule
- Vanguard::Rule::Nullary
- Vanguard::Rule::Nullary::Confirmation
- Defined in:
- lib/vanguard/rule/nullary/confirmation.rb
Overview
For for testing attribute confirmations
Defined Under Namespace
Constant Summary collapse
- TYPE =
:confirmation
Instance Attribute Summary collapse
-
#attribute_name ⇒ Symbol
readonly
private
Return attribute name.
-
#confirmation_attribute_name ⇒ Symbol
readonly
private
Return confirmation attribute name.
Instance Method Summary collapse
-
#initialize(attribute_name, confirmation_attribute_name) ⇒ undefined
constructor
private
Initialize object.
Methods inherited from Vanguard::Rule::Nullary
Methods inherited from Vanguard::Rule
#evaluate, #evaluator, #violations
Constructor Details
#initialize(attribute_name, confirmation_attribute_name) ⇒ undefined
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.
Initialize object
169 170 171 172 173 174 |
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 169 def initialize(attribute_name, confirmation_attribute_name) @attribute_name, @confirmation_attribute_name = attribute_name, confirmation_attribute_name end |
Instance Attribute Details
#attribute_name ⇒ Symbol (readonly)
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.
Return attribute name
150 151 152 |
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 150 def attribute_name @attribute_name end |
#confirmation_attribute_name ⇒ Symbol (readonly)
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.
Return confirmation attribute name
158 159 160 |
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 158 def confirmation_attribute_name @confirmation_attribute_name end |