Class: Validatable::ValidationBase
- Inherits:
-
Object
- Object
- Validatable::ValidationBase
- Defined in:
- lib/validation_base.rb
Overview
:nodoc:
Direct Known Subclasses
ValidatesAcceptanceOf, ValidatesConfirmationOf, ValidatesFormatOf, ValidatesLengthOf, ValidatesPresenceOf
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attribute, message) ⇒ ValidationBase
constructor
A new instance of ValidationBase.
Constructor Details
#initialize(attribute, message) ⇒ ValidationBase
Returns a new instance of ValidationBase.
5 6 7 |
# File 'lib/validation_base.rb', line 5 def initialize(attribute, ) @attribute, @message = attribute, end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/validation_base.rb', line 3 def attribute @attribute end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/validation_base.rb', line 3 def @message end |