Class: RepoTender::CLI::Outcome
- Inherits:
-
Data
- Object
- Data
- RepoTender::CLI::Outcome
- Defined in:
- lib/repo_tender/cli.rb
Overview
The Outcome value object. ‘exit_code` is 0 for success and 1 for Failure-derived failures. `message` is the user-facing explanation already written to err (kept here so the entrypoint could log/record it in a future slice).
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(exit_code:, message: nil) ⇒ Outcome
constructor
A new instance of Outcome.
Constructor Details
#initialize(exit_code:, message: nil) ⇒ Outcome
Returns a new instance of Outcome.
31 32 33 |
# File 'lib/repo_tender/cli.rb', line 31 def initialize(exit_code:, message: nil) super end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
30 31 32 |
# File 'lib/repo_tender/cli.rb', line 30 def exit_code @exit_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message
30 31 32 |
# File 'lib/repo_tender/cli.rb', line 30 def @message end |