Sha256: 35c0d6ca7159e341093b95742244f681fb895cc377fd1196f6409657e606f8b7
Contents?: true
Size: 1.13 KB
Versions: 10
Compression:
Stored size: 1.13 KB
Contents
module Octokit class Client module Events # List all public events for GitHub # # @return [Array] A list of all public events from GitHub # @see http://developer.github.com/v3/events # @example List all pubilc events # Octokit.public_events def public_events(options={}) get("/events", options, 3) end # List all user events # # @return [Array] A list of all user events # @see http://developer.github.com/v3/events # @example List all user events # Octokit.user_events("sferik") def user_events(user, options={}) get("/users/#{user}/events", options, 3) end # List events for a repository # # @param repo [String, Repository, Hash] A GitHub repository # @return [Array] A list of events for a repository # @see http://developer.github.com/v3/events # @example List events for a repository # Octokit.repository_events("sferik/rails_admin") def repository_events(repo, options={}) get("/repos/#{Repository.new(repo)}/events", options, 3) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems