Class: AgentCliRuntime::CapturedResult
- Inherits:
-
Data
- Object
- Data
- AgentCliRuntime::CapturedResult
- Defined in:
- lib/agent_cli_runtime/values.rb
Instance Attribute Summary collapse
-
#inspection_output ⇒ Object
readonly
Returns the value of attribute inspection_output.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
-
#termination ⇒ Object
readonly
Returns the value of attribute termination.
Instance Method Summary collapse
-
#initialize(stdout:, stderr:, termination:, inspection_output: nil) ⇒ CapturedResult
constructor
A new instance of CapturedResult.
Constructor Details
#initialize(stdout:, stderr:, termination:, inspection_output: nil) ⇒ CapturedResult
Returns a new instance of CapturedResult.
432 433 434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/agent_cli_runtime/values.rb', line 432 def initialize(stdout:, stderr:, termination:, inspection_output: nil) unless termination.is_a?(TerminationEvidence) raise ArgumentError, "termination must be TerminationEvidence" end super( stdout: Immutable.string(stdout), stderr: Immutable.string(stderr), termination: termination, inspection_output: inspection_output.nil? ? nil : Immutable.string(inspection_output) ) end |
Instance Attribute Details
#inspection_output ⇒ Object (readonly)
Returns the value of attribute inspection_output
429 430 431 |
# File 'lib/agent_cli_runtime/values.rb', line 429 def inspection_output @inspection_output end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr
429 430 431 |
# File 'lib/agent_cli_runtime/values.rb', line 429 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout
429 430 431 |
# File 'lib/agent_cli_runtime/values.rb', line 429 def stdout @stdout end |
#termination ⇒ Object (readonly)
Returns the value of attribute termination
429 430 431 |
# File 'lib/agent_cli_runtime/values.rb', line 429 def termination @termination end |