Sha256: 4ee8f69401712dc465c158c14694100ec45c82995ddc963623279defaf54de93
Contents?: true
Size: 441 Bytes
Versions: 3
Compression:
Stored size: 441 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitlab-3.3.0 | lib/gitlab/api.rb |
gitlab-3.2.0 | lib/gitlab/api.rb |
gitlab-3.1.0 | lib/gitlab/api.rb |