Method: Mongo::Cursor#query_options_hash

Defined in:
lib/mongo/cursor.rb

#query_options_hashHash

Get the query options for this Cursor.

Returns:



308
309
310
311
312
313
314
315
316
317
# File 'lib/mongo/cursor.rb', line 308

def query_options_hash
  { :selector => @selector,
    :fields   => @fields,
    :skip     => @skip_num,
    :limit    => @limit_num,
    :order    => @order,
    :hint     => @hint,
    :snapshot => @snapshot,
    :timeout  => @timeout }
end