Exception: BranchIOCLI::Helper::CommandError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/branch_io_cli/helper/methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CommandError



5
6
7
8
9
# File 'lib/branch_io_cli/helper/methods.rb', line 5

def initialize(args)
  message, status = *args
  super message
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/branch_io_cli/helper/methods.rb', line 4

def status
  @status
end