debian-mirror-gitlab/lib/gitlab/phabricator_import/conduit/pagination.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
412 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
module Gitlab
module PhabricatorImport
module Conduit
class Pagination
def initialize(cursor_json)
@cursor_json = cursor_json
end
def has_next_page?
next_page.present?
end
def next_page
cursor_json["after"]
end
private
attr_reader :cursor_json
end
end
end
end