class Github::PullRequests
def list(*args)
pulls.pull_requests.list 'user-name', 'repo-name'
pulls = Github::PullRequests.new
github.pull_requests.list { |req| ... }
github.pull_requests.list
github = Github.new :user => 'user-name', :repo => 'repo-name'
= Examples
List pull requests
def list(*args) arguments(args, :required => [:user, :repo]) do sift VALID_REQUEST_PARAM_NAMES assert_values VALID_REQUEST_PARAM_VALUES end response = get_request("/repos/#{user}/#{repo}/pulls", arguments.params) return response unless block_given? response.each { |el| yield el } end