Class: Remover::Team

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(github_client, github_team) ⇒ Team

Returns a new instance of Team.



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

def initialize(github_client, github_team)
  @github_client, @github_team = github_client, github_team
end

Instance Attribute Details

#github_clientObject

Returns the value of attribute github_client.



3
4
5
# File 'lib/remover/team.rb', line 3

def github_client
  @github_client
end

#github_teamObject

Returns the value of attribute github_team.



3
4
5
# File 'lib/remover/team.rb', line 3

def github_team
  @github_team
end

Instance Method Details

#nameObject



13
14
15
# File 'lib/remover/team.rb', line 13

def name
  github_team.name
end

#used?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/remover/team.rb', line 9

def used?
  with_members? && with_repositories?
end