lib/mongo/protocol/get_more.rb in mongo-2.5.3 vs lib/mongo/protocol/get_more.rb in mongo-2.6.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2014-2017 MongoDB, Inc.
+# Copyright (C) 2014-2018 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -13,11 +13,11 @@
# limitations under the License.
module Mongo
module Protocol
- # MongoDB Wire protocol GetMore message.
+ # MongoDB Wire protocol getMore message.
#
# This is a client request message that is sent to the server in order
# to retrieve additional documents from a cursor that has already been
# instantiated.
#
@@ -25,11 +25,11 @@
# name as well as the cursor id because cursors are scoped to a namespace.
#
# @api semipublic
class GetMore < Message
- # Creates a new GetMore message
+ # Creates a new getMore message
#
# @example Get 15 additional documents from cursor 123 in 'xgen.users'.
# GetMore.new('xgen', 'users', 15, 123)
#
# @param database [String, Symbol] The database to query.
@@ -78,31 +78,31 @@
attr_reader :upconverter
private
- # The operation code required to specify a GetMore message.
+ # The operation code required to specify a getMore message.
# @return [Fixnum] the operation code.
#
# @since 2.5.0
OP_CODE = 2005
# Field representing Zero encoded as an Int32
field :zero, Zero
# @!attribute
- # @return [String] The namespace for this GetMore message.
+ # @return [String] The namespace for this getMore message.
field :namespace, CString
# @!attribute
- # @return [Fixnum] The number to return for this GetMore message.
+ # @return [Fixnum] The number to return for this getMore message.
field :number_to_return, Int32
# @!attribute
# @return [Fixnum] The cursor id to get more documents from.
field :cursor_id, Int64
- # Converts legacy getmore messages to the appropriare OP_COMMAND style
+ # Converts legacy getMore messages to the appropriare OP_COMMAND style
# message.
#
# @since 2.1.0
class Upconverter