Class ZOOM::ResultSet
In: src/rbzoomquery.c
Parent: Object

Methods

[]   each_record   get_option   length   records   set_option   size  

Public Instance methods

key: either an integer, a range or an interval of 2 integers.

Retrieves one or many records from the result set, according to the given key.

     # Gets the first record.
     rset[0]
     # Gets the first, second and third records.
     rset[1..3]
     # Gets three records starting from the second one.
     rset[2, 3]

Returns: one or many references to ZOOM::Record objects.

Parses the records inside the result set and call the given block for each record, passing a reference to a ZOOM::Record object as parameter.

Returns: self.

key: the name of the option, as a string.

Gets the value of a result set‘s option.

Returns: the value of the given option, as a string, integer or boolean.

length()

Alias for size

Lists the records inside the result set.

Returns: an array of ZOOM::Record objects.

key: the name of the option, as a string.

value: the value of this option (as a string, integer or boolean).

Sets an option on the result set.

Returns: self.

Returns: the number of hits.

[Validate]