Class: Mongo::Cursor::Builder::GetMoreCommand
- Inherits:
-
Object
- Object
- Mongo::Cursor::Builder::GetMoreCommand
- Extended by:
- Forwardable
- Defined in:
- lib/mongo/cursor/builder/get_more_command.rb
Overview
Generates a specification for a get more command.
Instance Attribute Summary collapse
-
#cursor ⇒ Cursor
readonly
Cursor The cursor.
Instance Method Summary collapse
-
#initialize(cursor, session = nil) ⇒ GetMoreCommand
constructor
Create the new builder.
-
#specification ⇒ Hash
Get the specification.
Constructor Details
#initialize(cursor, session = nil) ⇒ GetMoreCommand
Create the new builder.
40 41 42 43 |
# File 'lib/mongo/cursor/builder/get_more_command.rb', line 40 def initialize(cursor, session = nil) @cursor = cursor @session = session end |
Instance Attribute Details
#cursor ⇒ Cursor (readonly)
Returns cursor The cursor.
26 27 28 |
# File 'lib/mongo/cursor/builder/get_more_command.rb', line 26 def cursor @cursor end |
Instance Method Details
#specification ⇒ Hash
Get the specification.
53 54 55 |
# File 'lib/mongo/cursor/builder/get_more_command.rb', line 53 def specification { selector: get_more_command, db_name: database.name, session: @session } end |