lib/moped/protocol/get_more.rb in moped-1.0.0.rc vs lib/moped/protocol/get_more.rb in moped-1.0.0
- old
+ new
@@ -41,10 +41,12 @@
# @attribute
# @return [Number] the id of the cursor to get more documents from
int64 :cursor_id
+ finalize
+
undef op_code
# @return [Number] OP_GETMORE operation code (2005)
def op_code
2005
end
@@ -70,11 +72,24 @@
@request_id = options[:request_id]
end
def log_inspect
type = "GET_MORE"
-
"%-12s database=%s collection=%s limit=%s cursor_id=%s" % [type, database, collection, limit, cursor_id]
+ end
+
+ # Receive replies to the message.
+ #
+ # @example Receive replies.
+ # message.receive_replies(connection)
+ #
+ # @param [ Connection ] connection The connection.
+ #
+ # @return [ Protocol::Reply ] The reply.
+ #
+ # @since 1.0.0
+ def receive_replies(connection)
+ connection.read
end
end
end
end