| Class | Mongo::Cursor::Builder::OpKillCursors |
| In: |
lib/mongo/cursor/builder/op_kill_cursors.rb
|
| Parent: | Object |
Encapsulates behavior around generating an OP_KILL_CURSORS specification.
@since 2.2.0
| cursor | [R] | @return [ Cursor ] cursor The cursor. |
Get the list of cursor ids from a spec generated by this Builder.
@example Get the list of cursor ids.
OpKillCursors.cursors(spec)
@return [ Hash ] The specification.
@since 2.3.0
Update a specification‘s list of cursor ids.
@example Update a specification‘s list of cursor ids.
OpKillCursors.update_cursors(spec, ids)
@return [ Hash ] The specification. @return [ Array ] The ids to update with.
@since 2.3.0
Get the specification.
@example Get the specification.
op_kill_cursors.specification
@return [ Hash ] The specification.
@since 2.2.0