class Gitlab::Client

Wrapper for the Gitlab REST API.

def inspect

Returns:
  • (String) -
def inspect
  inspected = super
  inspected.sub! @private_token, only_show_last_four_chars(@private_token) if @private_token
  inspected
end

def only_show_last_four_chars(token)

def only_show_last_four_chars(token)
  "#{'*' * (token.size - 4)}#{token[-4..-1]}"
end

def url_encode(url)

def url_encode(url)
  URI.encode(url.to_s, /\W/)
end