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) ⇒ GetMoreCommand
constructor
Create the new builder.
-
#specification ⇒ Hash
Get the specification.
Constructor Details
#initialize(cursor) ⇒ GetMoreCommand
Create the new builder.
39 40 41 |
# File 'lib/mongo/cursor/builder/get_more_command.rb', line 39 def initialize(cursor) @cursor = cursor 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.
51 52 53 |
# File 'lib/mongo/cursor/builder/get_more_command.rb', line 51 def specification { selector: get_more_command, db_name: database.name } end |