Module: Bitbuckit::Client::Teams
- Included in:
- Bitbuckit::Client
- Defined in:
- lib/bitbuckit/client/teams.rb
Instance Method Summary collapse
- #team(username, options = {}) ⇒ Object
- #team_repositories(team, options = {}) ⇒ Object
- #teams(role = "member", options = {}) ⇒ Object
Instance Method Details
#team(username, options = {}) ⇒ Object
8 9 10 |
# File 'lib/bitbuckit/client/teams.rb', line 8 def team(username, = {}) get "teams/#{username}", end |
#team_repositories(team, options = {}) ⇒ Object
12 13 14 |
# File 'lib/bitbuckit/client/teams.rb', line 12 def team_repositories(team, = {}) paginate("repositories/#{team}", auto_paginate: true) end |
#teams(role = "member", options = {}) ⇒ Object
4 5 6 |
# File 'lib/bitbuckit/client/teams.rb', line 4 def teams(role = "member", = {}) paginate("teams", role: role, auto_paginate: true) end |