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