Class: Ace::Demo::Models::ExecutionResult
- Inherits:
-
Object
- Object
- Ace::Demo::Models::ExecutionResult
- Defined in:
- lib/ace/demo/models/execution_result.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout:, stderr:, success:, exit_code:) ⇒ ExecutionResult
constructor
A new instance of ExecutionResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(stdout:, stderr:, success:, exit_code:) ⇒ ExecutionResult
Returns a new instance of ExecutionResult.
9 10 11 12 13 14 |
# File 'lib/ace/demo/models/execution_result.rb', line 9 def initialize(stdout:, stderr:, success:, exit_code:) @stdout = stdout @stderr = stderr @success = success @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
7 8 9 |
# File 'lib/ace/demo/models/execution_result.rb', line 7 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
7 8 9 |
# File 'lib/ace/demo/models/execution_result.rb', line 7 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
7 8 9 |
# File 'lib/ace/demo/models/execution_result.rb', line 7 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
16 17 18 |
# File 'lib/ace/demo/models/execution_result.rb', line 16 def success? @success end |