Sha256: 69caeadc1106dad8bf5aae83d6ec6ae0b6a7543e129c5a82b460308fe05cc2c2

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 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

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-3.0.0 lib/gitlab/api.rb