Class: Remover::Team
- Inherits:
-
Object
- Object
- Remover::Team
- Defined in:
- lib/remover/team.rb
Instance Attribute Summary collapse
-
#github_client ⇒ Object
Returns the value of attribute github_client.
-
#github_team ⇒ Object
Returns the value of attribute github_team.
Instance Method Summary collapse
-
#initialize(github_client, github_team) ⇒ Team
constructor
A new instance of Team.
- #name ⇒ Object
- #used? ⇒ Boolean
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_client ⇒ Object
Returns the value of attribute github_client.
3 4 5 |
# File 'lib/remover/team.rb', line 3 def github_client @github_client end |
#github_team ⇒ Object
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
#name ⇒ Object
13 14 15 |
# File 'lib/remover/team.rb', line 13 def name github_team.name end |
#used? ⇒ Boolean
9 10 11 |
# File 'lib/remover/team.rb', line 9 def used? with_members? && with_repositories? end |