Sha256: d6fa1796fdff2bf1f6ce1adf19f69521164fe435a1c8395109547cc68842681a
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitlab-2.2.0 | lib/gitlab/api.rb |
gitlab-2.1.0 | lib/gitlab/api.rb |
gitlab-2.0.0 | lib/gitlab/api.rb |