class Octokit::EnterpriseAdminClient

EnterpriseAdminClient is only meant to be used by GitHub Enterprise Admins and provides access the Admin only API endpoints including Admin Stats, Management Console, and the Search Indexing API.

@see Octokit::Client Use Octokit::Client for regular API use for GitHub

and GitHub Enterprise.

@see developer.github.com/v3/enterprise/

Public Class Methods

new(options = {}) click to toggle source
# File lib/octokit/enterprise_admin_client.rb, line 30
def initialize(options = {})
  # Use options passed in, but fall back to module defaults
  Octokit::Configurable.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key] || Octokit.instance_variable_get(:"@#{key}"))
  end

  login_from_netrc unless user_authenticated? || application_authenticated?
end