class Mongo::Cursor::Builder::OpGetMore
Encapsulates behavior around generating an OP_GET_MORE specification.
@since 2.2.0
Attributes
cursor[R]
@return [ Cursor
] cursor The cursor.
Public Class Methods
new(cursor)
click to toggle source
Create the new builder.
@example Create the builder.
OpGetMore.new(cursor)
@param [ Cursor
] cursor The cursor.
@since 2.2.0
# File lib/mongo/cursor/builder/op_get_more.rb, line 38 def initialize(cursor) @cursor = cursor end
Public Instance Methods
specification()
click to toggle source
Get the specification.
@example Get the specification.
op_get_more.specification
@return [ Hash ] The specification.
@since 2.2.0
# File lib/mongo/cursor/builder/op_get_more.rb, line 50 def specification { :to_return => to_return, :cursor_id => BSON::Int64.new(cursor.id), :db_name => database.name, :coll_name => collection_name, } end