Class: Judge::ConfirmationValidator
- Inherits:
-
Object
- Object
- Judge::ConfirmationValidator
- Includes:
- EachValidator
- Defined in:
- lib/judge/confirmation_validator.rb
Instance Attribute Summary collapse
-
#amv ⇒ Object
readonly
Returns the value of attribute amv.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, method) ⇒ ConfirmationValidator
constructor
A new instance of ConfirmationValidator.
- #kind ⇒ Object
- #options ⇒ Object
Methods included from EachValidator
Constructor Details
#initialize(object, method) ⇒ ConfirmationValidator
Returns a new instance of ConfirmationValidator.
8 9 10 11 12 |
# File 'lib/judge/confirmation_validator.rb', line 8 def initialize(object, method) @object = object @method = method @amv = amv_from_original end |
Instance Attribute Details
#amv ⇒ Object (readonly)
Returns the value of attribute amv.
6 7 8 |
# File 'lib/judge/confirmation_validator.rb', line 6 def amv @amv end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/judge/confirmation_validator.rb', line 6 def method @method end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
6 7 8 |
# File 'lib/judge/confirmation_validator.rb', line 6 def object @object end |
Instance Method Details
#kind ⇒ Object
14 15 16 |
# File 'lib/judge/confirmation_validator.rb', line 14 def kind @amv.kind if @amv.present? end |
#options ⇒ Object
18 19 20 |
# File 'lib/judge/confirmation_validator.rb', line 18 def @amv. if @amv.present? end |