Class: Daytona::SessionExecuteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/daytona/common/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ SessionExecuteResponse

Initialize a new SessionExecuteResponse

Parameters:

  • opts (Hash) (defaults to: {})

    Options for the SessionExecuteResponse

  • cmd_id (String, nil)

    Unique identifier for the executed command

  • output (String, nil)

    The output from the command execution

  • stdout (String, nil)

    Standard output from the command

  • stderr (String, nil)

    Standard error from the command

  • exit_code (Integer, nil)

    The exit code from the command execution

  • additional_properties (Hash)

    Additional properties from the response



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_propertiesHash (readonly)

Returns Additional properties from the response.

Returns:

  • (Hash)

    Additional properties from the response



99
100
101
# File 'lib/daytona/common/process.rb', line 99

def additional_properties
  @additional_properties
end

#cmd_idString? (readonly)

Returns Unique identifier for the executed command.

Returns:

  • (String, nil)

    Unique identifier for the executed command



84
85
86
# File 'lib/daytona/common/process.rb', line 84

def cmd_id
  @cmd_id
end

#exit_codeInteger? (readonly)

Returns The exit code from the command execution.

Returns:

  • (Integer, nil)

    The exit code from the command execution



96
97
98
# File 'lib/daytona/common/process.rb', line 96

def exit_code
  @exit_code
end

#outputString? (readonly)

Returns The output from the command execution.

Returns:

  • (String, nil)

    The output from the command execution



87
88
89
# File 'lib/daytona/common/process.rb', line 87

def output
  @output
end

#stderrString? (readonly)

Returns Standard error from the command.

Returns:

  • (String, nil)

    Standard error from the command



93
94
95
# File 'lib/daytona/common/process.rb', line 93

def stderr
  @stderr
end

#stdoutString? (readonly)

Returns Standard output from the command.

Returns:

  • (String, nil)

    Standard output from the command



90
91
92
# File 'lib/daytona/common/process.rb', line 90

def stdout
  @stdout
end