Class: AutomationObject::BluePrint::HashAdapter::Validators::Validate
- Inherits:
-
Object
- Object
- AutomationObject::BluePrint::HashAdapter::Validators::Validate
- Defined in:
- lib/automation_object/blue_print/hash_adapter/helpers/validators/validate.rb
Overview
Super-class for validators, contains base functionality Sub-classes must implement validate for the composite
Direct Known Subclasses
ValidateAllowedKeys, ValidateElementPresenceOf, ValidateInstanceOf, ValidateModalPresenceOf, ValidatePresenceOf, ValidateScreenPresenceOf, ValidateViewPresenceOf
Instance Attribute Summary collapse
-
#error_messages ⇒ Array<String>
Array of error messages, default empty array.
Instance Method Summary collapse
-
#valid? ⇒ Boolean
Whether or not validation passed or failed.
Instance Attribute Details
#error_messages ⇒ Array<String>
Returns array of error messages, default empty array
15 16 17 |
# File 'lib/automation_object/blue_print/hash_adapter/helpers/validators/validate.rb', line 15 def @error_messages end |
Instance Method Details
#valid? ⇒ Boolean
Returns whether or not validation passed or failed
20 21 22 |
# File 'lib/automation_object/blue_print/hash_adapter/helpers/validators/validate.rb', line 20 def valid? .length.zero? ? true : false end |