mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
22 lines
301 B
Ruby
22 lines
301 B
Ruby
# frozen_string_literal: true
|
|
|
|
module BitbucketServer
|
|
module Representation
|
|
class User < Representation::Base
|
|
def email
|
|
user['emailAddress']
|
|
end
|
|
|
|
def username
|
|
user['slug']
|
|
end
|
|
|
|
private
|
|
|
|
def user
|
|
raw['user']
|
|
end
|
|
end
|
|
end
|
|
end
|