You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
458 B
18 lines
458 B
module Gitlab
|
|
# @private
|
|
class API < Request
|
|
# @private
|
|
attr_accessor(*Configuration::VALID_OPTIONS_KEYS)
|
|
|
|
# Creates a new API.
|
|
# @raise [Error:MissingCredentials]
|
|
def initialize(options={})
|
|
options = Gitlab.options.merge(options)
|
|
Configuration::VALID_OPTIONS_KEYS.each do |key|
|
|
send("#{key}=", options[key])
|
|
end
|
|
set_request_defaults @endpoint, @private_token, @sudo
|
|
end
|
|
end
|
|
end
|