Module: Octokit::Client::Events
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/events.rb
Instance Method Summary collapse
-
#organization_events(org, options = {}) ⇒ Array
List all events for an organization.
-
#organization_public_events(org, options = {}) ⇒ Array
List an organization’s public events.
-
#public_events(options = {}) ⇒ Array
List all public events for GitHub.
-
#received_events(user, options = {}) ⇒ Array
List events that a user has received.
-
#received_public_events(user, options = {}) ⇒ Array
List public events a user has received.
-
#repository_events(repo, options = {}) ⇒ Array
List events for a repository.
-
#repository_network_events(repo, options = {}) ⇒ Array
List public events for a repository’s network.
-
#user_events(user, options = {}) ⇒ Array
List all user events.
-
#user_public_events(user, options = {}) ⇒ Array
List public user events.
Instance Method Details
#organization_events(org, options = {}) ⇒ Array
List all events for an organization
Requires authenticated client.
86 87 88 |
# File 'lib/octokit/client/events.rb', line 86 def organization_events(org, ={}) get("users/#{login}/events/orgs/#{org}", ) end |
#organization_public_events(org, options = {}) ⇒ Array
List an organization’s public events
97 98 99 |
# File 'lib/octokit/client/events.rb', line 97 def organization_public_events(org, ={}) get("orgs/#{org}/events", ) end |
#public_events(options = {}) ⇒ Array
List all public events for GitHub
10 11 12 |
# File 'lib/octokit/client/events.rb', line 10 def public_events(={}) get("events", ) end |
#received_events(user, options = {}) ⇒ Array
List events that a user has received
41 42 43 |
# File 'lib/octokit/client/events.rb', line 41 def received_events(user, ={}) get("users/#{user}/received_events", ) end |
#received_public_events(user, options = {}) ⇒ Array
List public events a user has received
51 52 53 |
# File 'lib/octokit/client/events.rb', line 51 def received_public_events(user, ={}) get("users/#{user}/received_events/public", ) end |
#repository_events(repo, options = {}) ⇒ Array
List events for a repository
62 63 64 |
# File 'lib/octokit/client/events.rb', line 62 def repository_events(repo, ={}) get("repos/#{Repository.new(repo)}/events", ) end |
#repository_network_events(repo, options = {}) ⇒ Array
List public events for a repository’s network
73 74 75 |
# File 'lib/octokit/client/events.rb', line 73 def repository_network_events(repo, ={}) get("networks/#{Repository.new repo}/events", ) end |
#user_events(user, options = {}) ⇒ Array
List all user events
20 21 22 |
# File 'lib/octokit/client/events.rb', line 20 def user_events(user, ={}) get("users/#{user}/events", ) end |
#user_public_events(user, options = {}) ⇒ Array
List public user events
31 32 33 |
# File 'lib/octokit/client/events.rb', line 31 def user_public_events(user, ={}) get("users/#{user}/events/public", ) end |