class Remover::Github
Attributes
octokit[RW]
Public Class Methods
new(octokit)
click to toggle source
# File lib/remover/github.rb, line 7 def initialize(octokit) @octokit = octokit end
Public Instance Methods
team_members(github_team_id)
click to toggle source
# File lib/remover/github.rb, line 17 def team_members(github_team_id) octokit.team_members(github_team_id) end
team_repositories(github_team_id)
click to toggle source
# File lib/remover/github.rb, line 21 def team_repositories(github_team_id) octokit.team_repositories(github_team_id) end
teams()
click to toggle source
# File lib/remover/github.rb, line 11 def teams github_teams.map do |github_team| Remover::Team.new(octokit, github_team) end end
Private Instance Methods
github_teams()
click to toggle source
# File lib/remover/github.rb, line 27 def github_teams octokit.organization_teams(Remover.configuration.organization) end