Class: SimpleValidate::ValidatesBase
- Inherits:
-
Object
- Object
- SimpleValidate::ValidatesBase
- Defined in:
- lib/simple_validate/validates_base.rb
Direct Known Subclasses
ValidatesFormatOf, ValidatesNumericalityOf, ValidatesPresenceOf
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attribute, message) ⇒ ValidatesBase
constructor
A new instance of ValidatesBase.
Constructor Details
#initialize(attribute, message) ⇒ ValidatesBase
Returns a new instance of ValidatesBase.
6 7 8 9 |
# File 'lib/simple_validate/validates_base.rb', line 6 def initialize(attribute, ) @message = @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
4 5 6 |
# File 'lib/simple_validate/validates_base.rb', line 4 def attribute @attribute end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/simple_validate/validates_base.rb', line 3 def @message end |