debian-mirror-gitlab/lib/gitlab/phabricator_import/conduit/pagination.rb
2019-09-04 21:01:54 +05:30

24 lines
412 B
Ruby

# 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