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

documents[R]
identifier[R]

Public Class Methods

new(identifier, documents) click to toggle source
# File lib/mongo/protocol/msg.rb, line 322
def initialize(identifier, documents)
  @identifier, @documents = identifier, documents
end

Public Instance Methods

==(other) click to toggle 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?
eql?(other)
Alias for: ==