Class: Ground::Validate
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#validations ⇒ Object
readonly
Returns the value of attribute validations.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(data) ⇒ Validate
constructor
A new instance of Validate.
Constructor Details
#initialize(data) ⇒ Validate
Returns a new instance of Validate.
6 7 8 9 10 |
# File 'lib/ground/activity/validate.rb', line 6 def initialize(data) super @errors = {} @validations = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/ground/activity/validate.rb', line 4 def errors @errors end |
#validations ⇒ Object (readonly)
Returns the value of attribute validations.
4 5 6 |
# File 'lib/ground/activity/validate.rb', line 4 def validations @validations end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/ground/activity/validate.rb', line 12 def call execute_validations end |