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.
88 89 90 91 92 93 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 88 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.
86 87 88 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 86 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
86 87 88 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 86 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
86 87 88 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 86 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
95 96 97 |
# File 'lib/ace/tmux/molecules/tmux_executor.rb', line 95 def success? @success end |