class Github::Client::Repos::Invitations
Public Instance Methods
delete(*args)
click to toggle source
Deletes a repo invitation
@example
github = Github.new github.repos.invitations.delete 'user-name', 'repo-name', 'invitation-id'
@api public
# File lib/github_api/client/repos/invitations.rb, line 35 def delete(*args) arguments(args, required: [:user, :repo, :id]) delete_request("/repos/#{arguments.user}/#{arguments.repo}/invitations/#{arguments.id}", arguments.params) end
list(*args) { |el| ... }
click to toggle source
List repo invitations
@example
github = Github.new github.repos.invitations.list 'user-name', 'repo-name'
@example
github.repos.invitations.list 'user-name', 'repo-name' { |cbr| .. }
@return [Array]
@api public
# File lib/github_api/client/repos/invitations.rb, line 19 def list(*args) arguments(args, required: [:user, :repo]) response = get_request("/repos/#{arguments.user}/#{arguments.repo}/invitations", arguments.params) return response unless block_given? response.each { |el| yield el } end
Also aliased as: all