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
115 116 117 118 119 120 121 122 |
# File 'lib/daytona/common/process.rb', line 115 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.
104 105 106 |
# File 'lib/daytona/common/process.rb', line 104 def additional_properties @additional_properties end |
#cmd_id ⇒ String? (readonly)
Returns Unique identifier for the executed command.
89 90 91 |
# File 'lib/daytona/common/process.rb', line 89 def cmd_id @cmd_id end |
#exit_code ⇒ Integer? (readonly)
Returns The exit code from the command execution.
101 102 103 |
# File 'lib/daytona/common/process.rb', line 101 def exit_code @exit_code end |
#output ⇒ String? (readonly)
Returns The output from the command execution.
92 93 94 |
# File 'lib/daytona/common/process.rb', line 92 def output @output end |
#stderr ⇒ String? (readonly)
Returns Standard error from the command.
98 99 100 |
# File 'lib/daytona/common/process.rb', line 98 def stderr @stderr end |
#stdout ⇒ String? (readonly)
Returns Standard output from the command.
95 96 97 |
# File 'lib/daytona/common/process.rb', line 95 def stdout @stdout end |