Class: AgentSandbox::ExecResult
- Inherits:
-
Object
- Object
- AgentSandbox::ExecResult
- Defined in:
- lib/agent_sandbox/sandbox.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout:, stderr:, status:) ⇒ ExecResult
constructor
A new instance of ExecResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(stdout:, stderr:, status:) ⇒ ExecResult
Returns a new instance of ExecResult.
4 5 6 7 8 |
# File 'lib/agent_sandbox/sandbox.rb', line 4 def initialize(stdout:, stderr:, status:) @stdout = stdout @stderr = stderr @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/agent_sandbox/sandbox.rb', line 3 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
3 4 5 |
# File 'lib/agent_sandbox/sandbox.rb', line 3 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
3 4 5 |
# File 'lib/agent_sandbox/sandbox.rb', line 3 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
10 |
# File 'lib/agent_sandbox/sandbox.rb', line 10 def success? = status.zero? |