Class: Ace::Demo::Models::VerificationResult
- Inherits:
-
Object
- Object
- Ace::Demo::Models::VerificationResult
- Defined in:
- lib/ace/demo/models/verification_result.rb
Instance Attribute Summary collapse
-
#classification ⇒ Object
readonly
Returns the value of attribute classification.
-
#commands_found ⇒ Object
readonly
Returns the value of attribute commands_found.
-
#commands_missing ⇒ Object
readonly
Returns the value of attribute commands_missing.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#report_path ⇒ Object
Returns the value of attribute report_path.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(success:, status:, commands_found:, commands_missing:, details: nil, classification: nil, summary: nil, retryable: false, report_path: nil) ⇒ VerificationResult
constructor
A new instance of VerificationResult.
- #retryable? ⇒ Boolean
- #success? ⇒ Boolean
Constructor Details
#initialize(success:, status:, commands_found:, commands_missing:, details: nil, classification: nil, summary: nil, retryable: false, report_path: nil) ⇒ VerificationResult
Returns a new instance of VerificationResult.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ace/demo/models/verification_result.rb', line 10 def initialize(success:, status:, commands_found:, commands_missing:, details: nil, classification: nil, summary: nil, retryable: false, report_path: nil) @success = success @status = status @commands_found = commands_found @commands_missing = commands_missing @details = details @classification = classification @summary = summary @retryable = retryable @report_path = report_path end |
Instance Attribute Details
#classification ⇒ Object (readonly)
Returns the value of attribute classification.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def classification @classification end |
#commands_found ⇒ Object (readonly)
Returns the value of attribute commands_found.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def commands_found @commands_found end |
#commands_missing ⇒ Object (readonly)
Returns the value of attribute commands_missing.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def commands_missing @commands_missing end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def details @details end |
#report_path ⇒ Object
Returns the value of attribute report_path.
8 9 10 |
# File 'lib/ace/demo/models/verification_result.rb', line 8 def report_path @report_path end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def retryable @retryable end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def status @status end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
7 8 9 |
# File 'lib/ace/demo/models/verification_result.rb', line 7 def summary @summary end |
Instance Method Details
#retryable? ⇒ Boolean
27 28 29 |
# File 'lib/ace/demo/models/verification_result.rb', line 27 def retryable? @retryable end |
#success? ⇒ Boolean
23 24 25 |
# File 'lib/ace/demo/models/verification_result.rb', line 23 def success? @success end |