Parent

Methods

Class/Module Index [+]

Quicksearch

Github::Issues::Events

Public Instance Methods

all(*args) click to toggle source
Alias for: list
find(*args) click to toggle source
Alias for: get
get(*args) click to toggle source

Get a single event

Examples

github = Github.new
github.issues.events.get 'user-name', 'repo-name', 'event-id'
# File lib/github_api/issues/events.rb, line 37
def get(*args)
  arguments(args, :required => [:user, :repo, :event_id])
  params = arguments.params

  get_request("/repos/#{user}/#{repo}/issues/events/#{event_id}", params)
end
Also aliased as: find
list(*args) click to toggle source

List events for an issue

Examples

github = Github.new
github.issues.events.list 'user-name', 'repo-name', issue_id: 'issue-id'

List events for a repository

Examples

github = Github.new
github.issues.events.list 'user-name', 'repo-name'
# File lib/github_api/issues/events.rb, line 17
def list(*args)
  arguments(args, :required => [:user, :repo])
  params = arguments.params

  response = if (issue_id = params.delete('issue_id'))
    get_request("/repos/#{user}/#{repo}/issues/#{issue_id}/events", params)
  else
    get_request("/repos/#{user}/#{repo}/issues/events", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end
Also aliased as: all

[Validate]

Generated with the Darkfish Rdoc Generator 2.