Method: Moped::Protocol::GetMore#initialize

Defined in:
lib/moped/protocol/get_more.rb

#initialize(database, collection, cursor_id, limit, options = {}) ⇒ GetMore

Create a new GetMore command. The database and collection arguments are joined together to set the full_collection_name.

Examples:

GetMore.new "moped", "users", 29301021, 10, request_id: 123


65
66
67
68
69
70
71
72
73
# File 'lib/moped/protocol/get_more.rb', line 65

def initialize(database, collection, cursor_id, limit, options = {})
  @database   = database
  @collection = collection

  @full_collection_name = "#{database}.#{collection}"
  @cursor_id            = cursor_id
  @limit                = limit
  @request_id           = options[:request_id]
end