Class: Daytona::ExecuteResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code:, result:, artifacts: nil, additional_properties: {}) ⇒ ExecuteResponse

Initialize a new ExecuteResponse

Parameters:

  • exit_code (Integer)

    The exit code from the command execution

  • result (String)

    The output from the command execution

  • artifacts (ExecutionArtifacts, nil) (defaults to: nil)

    Artifacts from the command execution

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

    Additional properties from the response



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

Returns Additional properties from the response.

Returns:

  • (Hash)

    Additional properties from the response



15
16
17
# File 'lib/daytona/common/process.rb', line 15

def additional_properties
  @additional_properties
end

#artifactsExecutionArtifacts? (readonly)

Returns Artifacts from the command execution.

Returns:



12
13
14
# File 'lib/daytona/common/process.rb', line 12

def artifacts
  @artifacts
end

#exit_codeInteger (readonly)

Returns The exit code from the command execution.

Returns:

  • (Integer)

    The exit code from the command execution



6
7
8
# File 'lib/daytona/common/process.rb', line 6

def exit_code
  @exit_code
end

#resultString (readonly)

Returns The output from the command execution.

Returns:

  • (String)

    The output from the command execution



9
10
11
# File 'lib/daytona/common/process.rb', line 9

def result
  @result
end