summaryrefslogtreecommitdiff
path: root/lib/gitlab/phabricator_import/representation/user.rb
blob: 7fd7cecc6aeeaba921fd15bb256da83ef7428b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Gitlab
  module PhabricatorImport
    module Representation
      class User
        def initialize(json)
          @json = json
        end

        def phabricator_id
          json['phid']
        end

        def username
          json['fields']['username']
        end

        private

        attr_reader :json
      end
    end
  end
end