Method: InterMine::PathQuery::Query#limit

Defined in:
lib/intermine/query.rb

#limit(size) ⇒ Object

Set the maximum number of rows this query will return.

This method can be used to set a default maximum size for a query. Set to nil for all rows. The value given here will be overridden by any value supplied by #each_row or #each_result, unless that value is nil, in which case this value will be used. If unset, the query will return all results.

Returns self for method chaining.

See also #size= and #offset



400
401
402
403
# File 'lib/intermine/query.rb', line 400

def limit(size)
    @size = size
    return self
end