Method: Github::Repos::Collaborators#remove

Defined in:
lib/github_api/repos/collaborators.rb

#remove(*args) ⇒ Object

Removes collaborator

Examples:

github = Github.new
github.repos.collaborators.remove 'user', 'repo', 'collaborator'


65
66
67
68
69
70
# File 'lib/github_api/repos/collaborators.rb', line 65

def remove(*args)
  arguments(args, :required => [:user, :repo, :collaborator])
  params = arguments.params

  delete_request("/repos/#{user}/#{repo}/collaborators/#{collaborator}", params)
end