123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Protocol::Msg::Section1 Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/mongo/protocol/msg.rb

Overview

Encapsulates a type 1 OP_MSG section.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#documents (readonly)

Since:

  • 2.5.0

[ GitHub ]

  
# File 'lib/mongo/protocol/msg.rb', line 370

attr_reader :identifier, :documents

#identifier (readonly)

Since:

  • 2.5.0

[ GitHub ]

  
# File 'lib/mongo/protocol/msg.rb', line 370

attr_reader :identifier, :documents

Instance Method Details

#==(other) Also known as: #eql?

Since:

  • 2.5.0

[ GitHub ]

  
# File 'lib/mongo/protocol/msg.rb', line 372

def ==(other)
  other.is_a?(Section1) &&
    identifier == other.identifier && documents == other.documents
end

#eql?(other)

Alias for #==.

[ GitHub ]

  
# File 'lib/mongo/protocol/msg.rb', line 377

alias :eql? :==