Class: Evilution::CLI::Result
- Inherits:
-
Struct
- Object
- Struct
- Evilution::CLI::Result
- Defined in:
- lib/evilution/cli/result.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_rendered ⇒ Object
Returns the value of attribute error_rendered.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(exit_code:, error: nil, error_rendered: false) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(exit_code:, error: nil, error_rendered: false) ⇒ Result
Returns a new instance of Result.
5 6 7 |
# File 'lib/evilution/cli/result.rb', line 5 def initialize(exit_code:, error: nil, error_rendered: false) super end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
4 5 6 |
# File 'lib/evilution/cli/result.rb', line 4 def error @error end |
#error_rendered ⇒ Object
Returns the value of attribute error_rendered
4 5 6 |
# File 'lib/evilution/cli/result.rb', line 4 def error_rendered @error_rendered end |
#exit_code ⇒ Object
Returns the value of attribute exit_code
4 5 6 |
# File 'lib/evilution/cli/result.rb', line 4 def exit_code @exit_code end |