mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
30 lines
411 B
Ruby
30 lines
411 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Bitbucket
|
|
module Representation
|
|
class User < Representation::Base
|
|
def username
|
|
raw['username']
|
|
end
|
|
|
|
def account_id
|
|
user['account_id']
|
|
end
|
|
|
|
def name
|
|
user['display_name']
|
|
end
|
|
|
|
def nickname
|
|
user['nickname']
|
|
end
|
|
|
|
private
|
|
|
|
def user
|
|
raw['user']
|
|
end
|
|
end
|
|
end
|
|
end
|