class Mongo::Protocol::Msg::Section1
Encapsulates a type 1 OP_MSG section.
@see github.com/mongodb/specifications/blob/master/source/message/OP_MSG.rst#sections
@api private
Attributes
Public Class Methods
Source
# File lib/mongo/protocol/msg.rb, line 322 def initialize(identifier, documents) @identifier, @documents = identifier, documents end
Public Instance Methods
Source
# File lib/mongo/protocol/msg.rb, line 328 def ==(other) other.is_a?(Section1) && identifier == other.identifier && documents == other.documents end
Also aliased as: eql?