blob: cbcf7259fb25d172bb6aefd921ebf4a9534b2a80 (
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
|
# frozen_string_literal: true
module Gitlab
module PhabricatorImport
module Conduit
class TasksResponse
def initialize(conduit_response)
@conduit_response = conduit_response
end
delegate :pagination, to: :conduit_response
def tasks
@tasks ||= conduit_response.data.map do |task_json|
Gitlab::PhabricatorImport::Representation::Task.new(task_json)
end
end
private
attr_reader :conduit_response
end
end
end
end
|