Class: Remover::Github

Inherits:
Object
  • Object
show all
Defined in:
lib/remover/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(octokit) ⇒ Github

Returns a new instance of Github.



7
8
9
# File 'lib/remover/github.rb', line 7

def initialize(octokit)
  @octokit = octokit
end

Instance Attribute Details

#octokitObject

Returns the value of attribute octokit.



5
6
7
# File 'lib/remover/github.rb', line 5

def octokit
  @octokit
end

Instance Method Details

#team_members(github_team_id) ⇒ Object



17
18
19
# 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) ⇒ Object



21
22
23
# File 'lib/remover/github.rb', line 21

def team_repositories(github_team_id)
  octokit.team_repositories(github_team_id)
end

#teamsObject



11
12
13
14
15
# File 'lib/remover/github.rb', line 11

def teams
  github_teams.map do |github_team|
    Remover::Team.new(octokit, github_team)
  end
end