Sha256: cb0a923390c885f7a34dde6ba4f41bff32fe1feaa4eb8a606b0573d43b3622a5

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

require 'dm-chunked_query/chunks'

module DataMapper
  module ChunkedQuery
    module Mixin
      #
      # Allows chunked access to the resources from a query.
      #
      # @param [Integer] per_chunk
      #   The number of resources per-chunk.
      #
      # @return [Chunks]
      #   The abstract collection of chunks from the query.
      #
      def chunks(per_chunk)
        Chunks.new(self,per_chunk)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm-chunked_query-0.1.2 lib/dm-chunked_query/mixin.rb
dm-chunked_query-0.1.1 lib/dm-chunked_query/mixin.rb
dm-chunked_query-0.1.0 lib/dm-chunked_query/mixin.rb