Skip to content

Commit 9afb06d

Browse files
committed
Implement .following in team.rb
1 parent 907a836 commit 9afb06d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/bitbucket_rest_api/team.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ def followers(team_name)
3030
response["values"].each { |el| yield el }
3131
end
3232

33+
def following(team_name)
34+
response = get_request("/2.0/teams/#{team_name.to_s}/following")
35+
return response unless block_given?
36+
response["values"].each { |el| yield el }
37+
end
38+
3339
end # Users
3440
end # BitBucket

0 commit comments

Comments
 (0)