Class: Daytona::ExecuteResponse
- Inherits:
-
Object
- Object
- Daytona::ExecuteResponse
- Defined in:
- lib/daytona/common/process.rb
Instance Attribute Summary collapse
-
#additional_properties ⇒ Hash
readonly
Additional properties from the response.
-
#artifacts ⇒ ExecutionArtifacts?
readonly
Artifacts from the command execution.
-
#exit_code ⇒ Integer
readonly
The exit code from the command execution.
-
#result ⇒ String
readonly
The output from the command execution.
Instance Method Summary collapse
-
#initialize(exit_code:, result:, artifacts: nil, additional_properties: {}) ⇒ ExecuteResponse
constructor
Initialize a new ExecuteResponse.
Constructor Details
#initialize(exit_code:, result:, artifacts: nil, additional_properties: {}) ⇒ ExecuteResponse
Initialize a new ExecuteResponse
23 24 25 26 27 28 |
# File 'lib/daytona/common/process.rb', line 23 def initialize(exit_code:, result:, artifacts: nil, additional_properties: {}) @exit_code = exit_code @result = result @artifacts = artifacts @additional_properties = additional_properties end |
Instance Attribute Details
#additional_properties ⇒ Hash (readonly)
Returns Additional properties from the response.
15 16 17 |
# File 'lib/daytona/common/process.rb', line 15 def additional_properties @additional_properties end |
#artifacts ⇒ ExecutionArtifacts? (readonly)
Returns Artifacts from the command execution.
12 13 14 |
# File 'lib/daytona/common/process.rb', line 12 def artifacts @artifacts end |
#exit_code ⇒ Integer (readonly)
Returns The exit code from the command execution.
6 7 8 |
# File 'lib/daytona/common/process.rb', line 6 def exit_code @exit_code end |
#result ⇒ String (readonly)
Returns The output from the command execution.
9 10 11 |
# File 'lib/daytona/common/process.rb', line 9 def result @result end |