Module: Bitbuckit::Client::Teams

Included in:
Bitbuckit::Client
Defined in:
lib/bitbuckit/client/teams.rb

Instance Method Summary collapse

Instance Method Details

#team(username, options = {}) ⇒ Object



8
9
10
# File 'lib/bitbuckit/client/teams.rb', line 8

def team(username, options = {})
  get "teams/#{username}", options
end

#team_repositories(team, options = {}) ⇒ Object



12
13
14
# File 'lib/bitbuckit/client/teams.rb', line 12

def team_repositories(team, options = {})
  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", options = {})
  paginate("teams", role: role, auto_paginate: true)
end