Exception: Connectors::GitLab::CustomClient::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/connectors/gitlab/custom_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, endpoint) ⇒ ClientError

Returns a new instance of ClientError.



24
25
26
27
# File 'lib/connectors/gitlab/custom_client.rb', line 24

def initialize(status_code, endpoint)
  @status_code = status_code
  @endpoint = endpoint
end

Instance Attribute Details

#api_tokenObject (readonly)

Returns the value of attribute api_token.



22
23
24
# File 'lib/connectors/gitlab/custom_client.rb', line 22

def api_token
  @api_token
end

#endpointObject (readonly)

Returns the value of attribute endpoint.



22
23
24
# File 'lib/connectors/gitlab/custom_client.rb', line 22

def endpoint
  @endpoint
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



22
23
24
# File 'lib/connectors/gitlab/custom_client.rb', line 22

def status_code
  @status_code
end