Class: SpaceArchitect::CLI::Outcome

Inherits:
Data
  • Object
show all
Defined in:
lib/space_architect/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code:, message: nil) ⇒ Outcome

Returns a new instance of Outcome.



8
# File 'lib/space_architect/cli.rb', line 8

def initialize(exit_code:, message: nil) = super

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



7
8
9
# File 'lib/space_architect/cli.rb', line 7

def exit_code
  @exit_code
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



7
8
9
# File 'lib/space_architect/cli.rb', line 7

def message
  @message
end