Sha256: 12eed3d74c81f1755f757b0c332c9666d2d1d5df3b512678837f0e20f48a6e66

Contents?: true

Size: 298 Bytes

Versions: 15

Compression:

Stored size: 298 Bytes

Contents

module Nazrin
  module PaginationGenerator
    class << self
      def generate(collection, options = {})
        Nazrin::PaginatedArray.new(
          collection,
          options[:current_page],
          options[:per_page],
          options[:total_count]
        )
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nazrin-2.7.0 lib/nazrin/pagination_generator.rb
nazrin-2.6.3 lib/nazrin/pagination_generator.rb
nazrin-2.6.2 lib/nazrin/pagination_generator.rb
nazrin-2.6.1 lib/nazrin/pagination_generator.rb
nazrin-2.6.0 lib/nazrin/pagination_generator.rb
nazrin-2.5.0 lib/nazrin/pagination_generator.rb
nazrin-2.4.0 lib/nazrin/pagination_generator.rb
nazrin-2.3.0 lib/nazrin/pagination_generator.rb
nazrin-2.2.0 lib/nazrin/pagination_generator.rb
nazrin-2.1.2 lib/nazrin/pagination_generator.rb
nazrin-2.1.1 lib/nazrin/pagination_generator.rb
nazrin-2.1.0 lib/nazrin/pagination_generator.rb
nazrin-2.0.0 lib/nazrin/pagination_generator.rb
nazrin-2.0.0.rc2 lib/nazrin/pagination_generator.rb
nazrin-2.0.0.rc1 lib/nazrin/pagination_generator.rb