Sha256: beeec4bebc7b8f186b8fb090bda361d89f26849126725a02aa1d7d719d918b61

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true
module Valkyrie::Persistence::Solr::Queries
  # Acts as a null object representing the default case for paginating over solr
  # results. Often only used for the first iteration of a loop.
  class DefaultPaginator
    def next_page
      1
    end

    def per_page
      100
    end

    def has_next?
      true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
valkyrie-1.2.0.rc1 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.1.2 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.1.1 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.1.0 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.0.0 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.0.0.rc2 lib/valkyrie/persistence/solr/queries/default_paginator.rb
valkyrie-1.0.0.rc1 lib/valkyrie/persistence/solr/queries/default_paginator.rb