gitlab-org--gitlab-foss/lib/bitbucket/client.rb
2016-11-21 16:47:25 -08:00

16 lines
315 B
Ruby

module Bitbucket
class Client
def initialize(options = {})
@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
end
end