Skip to content

Commit ed4da9e

Browse files
committed
Add aliases for .list and .repos
1 parent 05503d0 commit ed4da9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/bitbucket_rest_api/teams.rb

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def list(user_role)
1414
response["values"].each { |el| yield el }
1515
end
1616

17+
alias :all :list
18+
1719
def profile(team_name)
1820
get_request("/2.0/teams/#{team_name.to_s}")
1921
end
@@ -42,5 +44,7 @@ def repos(team_name)
4244
response["values"].each { |el| yield el }
4345
end
4446

47+
alias :repositories :repos
48+
4549
end # Team
4650
end # BitBucket

0 commit comments

Comments
 (0)