Sha256: ceb52faa944b462181a9dcafc92cff6e4bdb1492f2bc64b6f10f47e1e789cd12

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

class Pagy
  class Cursor < Pagy

    def initialize(vars)
      normalize_vars(vars)
      setup_items_var
      setup_params_var
      @page = vars[:page]
    end

    def finalize(prev_id, next_id, last_id)
      @prev = prev_id
      @next = next_id
      @last = last_id
      self
    end

    def series(*, **)
      []
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagy_mongoid_cursor-0.1.0 lib/pagy_mongoid_cursor/pagy/cursor.rb