lib/mongo/message/get_more_message.rb in mongodb-mongo-0.12 vs lib/mongo/message/get_more_message.rb in mongodb-mongo-0.13
- old
+ new
@@ -15,23 +15,18 @@
# ++
require 'mongo/message/message'
require 'mongo/message/opcodes'
-module XGen
- module Mongo
- module Driver
+module Mongo
- class GetMoreMessage < Message
+ class GetMoreMessage < Message
- def initialize(db_name, collection_name, cursor)
- super(OP_GET_MORE)
- write_int(0)
- write_string("#{db_name}.#{collection_name}")
- write_int(0) # num to return; leave it up to the db for now
- write_long(cursor)
- end
- end
+ def initialize(db_name, collection_name, cursor)
+ super(OP_GET_MORE)
+ write_int(0)
+ write_string("#{db_name}.#{collection_name}")
+ write_int(0) # num to return; leave it up to the db for now
+ write_long(cursor)
end
end
end
-