Class: ValidatorResult
- Inherits:
-
Object
- Object
- ValidatorResult
- Defined in:
- lib/preflight_check/validator_result.rb
Instance Attribute Summary collapse
-
#failed_jobs ⇒ Object
Returns the value of attribute failed_jobs.
-
#failed_resources ⇒ Object
Returns the value of attribute failed_resources.
Instance Method Summary collapse
-
#initialize(failed_jobs:, failed_resources:) ⇒ ValidatorResult
constructor
A new instance of ValidatorResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(failed_jobs:, failed_resources:) ⇒ ValidatorResult
Returns a new instance of ValidatorResult.
4 5 6 7 |
# File 'lib/preflight_check/validator_result.rb', line 4 def initialize(failed_jobs:, failed_resources:) @failed_jobs = failed_jobs @failed_resources = failed_resources end |
Instance Attribute Details
#failed_jobs ⇒ Object
Returns the value of attribute failed_jobs.
2 3 4 |
# File 'lib/preflight_check/validator_result.rb', line 2 def failed_jobs @failed_jobs end |
#failed_resources ⇒ Object
Returns the value of attribute failed_resources.
2 3 4 |
# File 'lib/preflight_check/validator_result.rb', line 2 def failed_resources @failed_resources end |
Instance Method Details
#success? ⇒ Boolean
9 10 11 |
# File 'lib/preflight_check/validator_result.rb', line 9 def success? failed_jobs.empty? && failed_resources.empty? end |