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

Methods

Attributes

cursor  [R]  @return [ Cursor ] cursor The cursor.

Public Class methods

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

Create the new builder.

@example Create the builder.

  OpKillCursors.new(cursor)

@param [ Cursor ] cursor The cursor.

@since 2.2.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

Public Instance methods

Get the specification.

@example Get the specification.

  op_kill_cursors.specification

@return [ Hash ] The specification.

@since 2.2.0

[Validate]