class Babik::QuerySet::Limit

Manages the limit of the QuerySet

Attributes

offset[R]
size[R]

Public Class Methods

new(size, offset = 0) click to toggle source

Construct a limit for QuerySet @param size [Integer] Size to be selected @param offset [Integer] Offset from the selection will begin. By default is 0.

# File lib/babik/queryset/components/limit.rb, line 13
def initialize(size, offset = 0)
  @size = size.to_i
  @offset = offset.to_i
end