Module: Octokit

Extended by:
Configuration
Defined in:
lib/octokit.rb,
lib/octokit/client.rb,
lib/octokit/version.rb,
lib/octokit/repository.rb,
lib/octokit/client/pulls.rb,
lib/octokit/client/users.rb,
lib/octokit/client/issues.rb,
lib/octokit/configuration.rb,
lib/octokit/client/commits.rb,
lib/octokit/client/network.rb,
lib/octokit/client/objects.rb,
lib/octokit/client/request.rb,
lib/octokit/client/timelines.rb,
lib/octokit/client/connection.rb,
lib/octokit/client/repositories.rb,
lib/octokit/client/organizations.rb,
lib/octokit/client/authentication.rb

Defined Under Namespace

Modules: Configuration Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, NotImplemented, Repository, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
"0.6.1".freeze

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_LOGIN, Configuration::DEFAULT_OAUTH_TOKEN, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_TOKEN, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_VERSION, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Octokit::Client

Alias for Octokit::Client.new

Returns:



10
11
12
# File 'lib/octokit.rb', line 10

def self.client(options={})
  Octokit::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Octokit::Client.new



15
16
17
18
# File 'lib/octokit.rb', line 15

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/octokit.rb', line 20

def self.respond_to?(method)
  client.respond_to?(method) || super
end