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.
23 24 25 26 27 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 23 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.
28 29 30 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 28 def err @err end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
28 29 30 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 28 def exit_code @exit_code end |
#out ⇒ Object
Returns the value of attribute out.
28 29 30 |
# File 'lib/hammer_cli/testing/command_assertions.rb', line 28 def out @out end |