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



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

Returns Additional properties from the response.

Returns:

  • (Hash)

    Additional properties from the response



104
105
106
# File 'lib/daytona/common/process.rb', line 104

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



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

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



101
102
103
# File 'lib/daytona/common/process.rb', line 101

def exit_code
  @exit_code
end

#outputString? (readonly)

Returns The output from the command execution.

Returns:

  • (String, nil)

    The output from the command execution



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

def output
  @output
end

#stderrString? (readonly)

Returns Standard error from the command.

Returns:

  • (String, nil)

    Standard error from the command



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

def stderr
  @stderr
end

#stdoutString? (readonly)

Returns Standard output from the command.

Returns:

  • (String, nil)

    Standard output from the command



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

def stdout
  @stdout
end