Class: CompositeCursor::FindOps

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/mongo_delegate/composite_cursor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cursorObject

Returns the value of attribute cursor.



34
35
36
# File 'lib/mongo_delegate/composite_cursor.rb', line 34

def cursor
  @cursor
end

#resObject

Returns the value of attribute res.



34
35
36
# File 'lib/mongo_delegate/composite_cursor.rb', line 34

def res
  @res
end

Instance Method Details

#optionsObject



36
# File 'lib/mongo_delegate/composite_cursor.rb', line 36

def options; cursor.options; end

#zero_limit?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/mongo_delegate/composite_cursor.rb', line 57

def zero_limit?
  ops[:limit] == 0
end