lib/bitbuckit/client/teams.rb in bitbuckit-0.1.1 vs lib/bitbuckit/client/teams.rb in bitbuckit-0.1.2

- old
+ new

@@ -1,13 +1,17 @@ module Bitbuckit class Client module Teams def teams(role = "member", options = {}) - paginate("teams", role: role) + paginate("teams", role: role, auto_paginate: true) end + def team(username, options = {}) + get "teams/#{username}", options + end + def team_repositories(team, options = {}) - paginate("repositories/#{team}") + paginate("repositories/#{team}", auto_paginate: true) end end end end