Class: Ace::Tmux::Molecules::ExecutionResult
- Inherits:
-
Object
- Object
- Ace::Tmux::Molecules::ExecutionResult
- Defined in:
- lib/ace/tmux/molecules/tmux_executor.rb
Overview
Immutable result of a tmux command execution
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#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:, success:, exit_code:) ⇒ ExecutionResult
constructor
A new instance of ExecutionResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(stdout:, stderr:, success:, exit_code:) ⇒ ExecutionResult
Returns a new instance of ExecutionResult.
96 97 98 99 100 101 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 96 def initialize(stdout:, stderr:, success:, exit_code:) @stdout = stdout @stderr = stderr @success = success @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
94 95 96 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 94 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
94 95 96 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 94 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
94 95 96 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 94 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
103 104 105 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 103 def success? @success end |