summaryrefslogtreecommitdiff
path: root/lib/bitbucket/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/client.rb')
-rw-r--r--lib/bitbucket/client.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bitbucket/client.rb b/lib/bitbucket/client.rb
index 5f48e52da98..c05fc35f36e 100644
--- a/lib/bitbucket/client.rb
+++ b/lib/bitbucket/client.rb
@@ -4,6 +4,11 @@ module Bitbucket
@connection = options.fetch(:connection, Connection.new(options))
end
+ def user
+ parsed_response = connection.get('/user')
+ Representation::User.new(parsed_response)
+ end
+
private
attr_reader :connection