class BranchIOCLI::Helper::CommandError

Attributes

status[R]

Public Class Methods

new(args) click to toggle source
Calls superclass method
# File lib/branch_io_cli/helper/methods.rb, line 5
def initialize(args)
  @args = args[0]
  @status = args[1]
  super message
end

Public Instance Methods

message() click to toggle source
# File lib/branch_io_cli/helper/methods.rb, line 11
def message
  if @args.count == 1
    return @args.first.shelljoin if @args.first.kind_of?(Array)
    return @args.first.to_s
  else
    return @args.shelljoin
  end
end