class Parelation::Criteria::Offset

Constants

OFFSET_FORMAT

@return [Regexp] the offset format.

Public Class Methods

match?(param) click to toggle source

@param param [String] @return [TrueClass, FalseClass]

# File lib/parelation/criteria/offset.rb, line 10
def self.match?(param)
  !!param.match(OFFSET_FORMAT)
end

Public Instance Methods

call() click to toggle source

@return [ActiveRecord::Relation]

# File lib/parelation/criteria/offset.rb, line 16
def call
  chain.offset(value)
end