Class: AeEasy::Qa::ValidateRules
- Inherits:
-
Object
- Object
- AeEasy::Qa::ValidateRules
- Includes:
- Helpers
- Defined in:
- lib/ae_easy/qa/validate_rules.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#errored_item ⇒ Object
Returns the value of attribute errored_item.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(data, errors, rules) ⇒ ValidateRules
constructor
A new instance of ValidateRules.
- #run ⇒ Object
Methods included from Helpers
#add_errored_item, #evaluate_condition, #pass_if?
Constructor Details
#initialize(data, errors, rules) ⇒ ValidateRules
Returns a new instance of ValidateRules.
9 10 11 12 13 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 9 def initialize(data, errors, rules) @data = data @errors = errors @rules = rules end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 6 def data @data end |
#errored_item ⇒ Object
Returns the value of attribute errored_item.
7 8 9 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 7 def errored_item @errored_item end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 6 def errors @errors end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
6 7 8 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 6 def rules @rules end |
Instance Method Details
#run ⇒ Object
15 16 17 18 |
# File 'lib/ae_easy/qa/validate_rules.rb', line 15 def run puts "Validating Rules" handle_rules end |