Class: Remover::List
- Inherits:
-
Object
- Object
- Remover::List
- Defined in:
- lib/remover/list.rb
Instance Attribute Summary collapse
-
#github_client ⇒ Object
Returns the value of attribute github_client.
Instance Method Summary collapse
-
#initialize(github_client) ⇒ List
constructor
A new instance of List.
- #unused_teams ⇒ Object
Constructor Details
#initialize(github_client) ⇒ List
Returns a new instance of List.
5 6 7 |
# File 'lib/remover/list.rb', line 5 def initialize(github_client) @github_client = github_client end |
Instance Attribute Details
#github_client ⇒ Object
Returns the value of attribute github_client.
3 4 5 |
# File 'lib/remover/list.rb', line 3 def github_client @github_client end |
Instance Method Details
#unused_teams ⇒ Object
9 10 11 |
# File 'lib/remover/list.rb', line 9 def unused_teams teams.delete_if(&:used?) end |