Sha256: 646dee16eee478a18e66317eac4d847e440ed253ac3be27d51b3589bab0dd9e8

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

module Nazrin
  module PaginationGenerator
    module NazrinGenerator
      def self.call(collection, options)
        Nazrin::PaginatedArray.new(
          collection,
          options[:current_page],
          options[:per_page],
          options[:total_count])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nazrin-1.0.1 lib/nazrin/pagination_generator/nazrin_generator.rb
nazrin-1.0.0 lib/nazrin/pagination_generator/nazrin_generator.rb
nazrin-0.2.0 lib/nazrin/pagination_generator/nazrin_generator.rb