Class: HammerCLI::Testing::CommandAssertions::CommandRunResult
- Inherits:
-
Object
- Object
- HammerCLI::Testing::CommandAssertions::CommandRunResult
- Defined in:
- lib/hammer_cli/testing/command_assertions.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
Returns the value of attribute err.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#out ⇒ Object
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(out = "", err = "", exit_code = 0) ⇒ CommandRunResult
constructor
A new instance of CommandRunResult.
Constructor Details
#initialize(out = "", err = "", exit_code = 0) ⇒ CommandRunResult
Returns a new instance of CommandRunResult.
21 22 23 24 25 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 21 def initialize(out="", err="", exit_code=0) @out = out @err = err @exit_code = exit_code end |
Instance Attribute Details
#err ⇒ Object
Returns the value of attribute err.
26 27 28 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26 def err @err end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
26 27 28 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26 def exit_code @exit_code end |
#out ⇒ Object
Returns the value of attribute out.
26 27 28 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26 def out @out end |