Class: ValidationAssertion
- Inherits:
-
Object
- Object
- ValidationAssertion
- Defined in:
- lib/validation_assertion.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#options ⇒ Object
Returns the value of attribute options.
-
#validation_type ⇒ Object
Returns the value of attribute validation_type.
Instance Method Summary collapse
-
#initialize(klass, validation_type, attribute) ⇒ ValidationAssertion
constructor
A new instance of ValidationAssertion.
Constructor Details
#initialize(klass, validation_type, attribute) ⇒ ValidationAssertion
Returns a new instance of ValidationAssertion.
4 5 6 |
# File 'lib/validation_assertion.rb', line 4 def initialize(klass, validation_type, attribute) self.klass, self.validation_type, self.attribute, self. = klass, validation_type, attribute, {} end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
2 3 4 |
# File 'lib/validation_assertion.rb', line 2 def attribute @attribute end |
#klass ⇒ Object
Returns the value of attribute klass.
2 3 4 |
# File 'lib/validation_assertion.rb', line 2 def klass @klass end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/validation_assertion.rb', line 2 def @options end |
#validation_type ⇒ Object
Returns the value of attribute validation_type.
2 3 4 |
# File 'lib/validation_assertion.rb', line 2 def validation_type @validation_type end |