Class: Daytona::SessionExecuteResponse
- Inherits:
-
Object
- Object
- Daytona::SessionExecuteResponse
- Defined in:
- lib/daytona/common/process.rb
Instance Attribute Summary collapse
-
#additional_properties ⇒ Hash
readonly
Additional properties from the response.
-
#cmd_id ⇒ String?
readonly
Unique identifier for the executed command.
-
#exit_code ⇒ Integer?
readonly
The exit code from the command execution.
-
#output ⇒ String?
readonly
The output from the command execution.
-
#stderr ⇒ String?
readonly
Standard error from the command.
-
#stdout ⇒ String?
readonly
Standard output from the command.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SessionExecuteResponse
constructor
Initialize a new SessionExecuteResponse.
Constructor Details
#initialize(opts = {}) ⇒ SessionExecuteResponse
Initialize a new SessionExecuteResponse
110 111 112 113 114 115 116 117 |
# File 'lib/daytona/common/process.rb', line 110 def initialize(opts = {}) @cmd_id = opts.fetch(:cmd_id, nil) @output = opts.fetch(:output, nil) @stdout = opts.fetch(:stdout, nil) @stderr = opts.fetch(:stderr, nil) @exit_code = opts.fetch(:exit_code, nil) @additional_properties = opts.fetch(:additional_properties, {}) end |
Instance Attribute Details
#additional_properties ⇒ Hash (readonly)
Returns Additional properties from the response.
99 100 101 |
# File 'lib/daytona/common/process.rb', line 99 def additional_properties @additional_properties end |
#cmd_id ⇒ String? (readonly)
Returns Unique identifier for the executed command.
84 85 86 |
# File 'lib/daytona/common/process.rb', line 84 def cmd_id @cmd_id end |
#exit_code ⇒ Integer? (readonly)
Returns The exit code from the command execution.
96 97 98 |
# File 'lib/daytona/common/process.rb', line 96 def exit_code @exit_code end |
#output ⇒ String? (readonly)
Returns The output from the command execution.
87 88 89 |
# File 'lib/daytona/common/process.rb', line 87 def output @output end |
#stderr ⇒ String? (readonly)
Returns Standard error from the command.
93 94 95 |
# File 'lib/daytona/common/process.rb', line 93 def stderr @stderr end |
#stdout ⇒ String? (readonly)
Returns Standard output from the command.
90 91 92 |
# File 'lib/daytona/common/process.rb', line 90 def stdout @stdout end |