summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/user.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-22 15:45:29 -0300
committerStan Hu <stanhu@gmail.com>2016-11-21 16:47:25 -0800
commitf1f5863bfc5727dba4767a54a299b0cf526b025a (patch)
treed13a022d4fdd3a102bc447b072f74d1c3409f7fc /lib/bitbucket/representation/user.rb
parentfc34c9560324b7db5bdaf205cbdf46a339102af2 (diff)
downloadgitlab-ce-f1f5863bfc5727dba4767a54a299b0cf526b025a.tar.gz
Add an endpoint to get the Bitbucket user profile
Diffstat (limited to 'lib/bitbucket/representation/user.rb')
-rw-r--r--lib/bitbucket/representation/user.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bitbucket/representation/user.rb b/lib/bitbucket/representation/user.rb
new file mode 100644
index 00000000000..ba6b7667b49
--- /dev/null
+++ b/lib/bitbucket/representation/user.rb
@@ -0,0 +1,9 @@
+module Bitbucket
+ module Representation
+ class User < Representation::Base
+ def username
+ raw['username']
+ end
+ end
+ end
+end