Module: GitHub

Defined in:
lib/github_api_v3.rb,
lib/github_api_v3/error.rb,
lib/github_api_v3/client.rb,
lib/github_api_v3/default.rb,
lib/github_api_v3/version.rb,
lib/github_api_v3/client/orgs.rb,
lib/github_api_v3/client/feeds.rb,
lib/github_api_v3/client/gists.rb,
lib/github_api_v3/client/oauth.rb,
lib/github_api_v3/client/repos.rb,
lib/github_api_v3/client/stats.rb,
lib/github_api_v3/client/users.rb,
lib/github_api_v3/client/events.rb,
lib/github_api_v3/client/issues.rb,
lib/github_api_v3/client/commits.rb,
lib/github_api_v3/client/octocat.rb,
lib/github_api_v3/client/contents.rb,
lib/github_api_v3/client/markdown.rb,
lib/github_api_v3/client/gitignore.rb,
lib/github_api_v3/client/milestones.rb,
lib/github_api_v3/client/pull_requests.rb

Defined Under Namespace

Modules: Default Classes: BadGateway, BadRequest, Client, ClientError, Forbidden, GitHubError, InternalServerError, LoginAttemptsExceeded, NotFound, RateLimitExceeded, ServerError, ServiceUnavailable, Unauthorized, Unavailable

Constant Summary collapse

VERSION =
'0.4.2'

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Object



11
12
13
14
# File 'lib/github_api_v3.rb', line 11

def client(options={})
  @client = Client.new(options) unless @client
  @client
end