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
- .new(identifier, documents) ⇒ Section1 constructor Internal use only
Instance Attribute Summary
- #documents readonly Internal use only
- #identifier readonly Internal use only
Instance Method Summary
- #==(other) (also: #eql?) Internal use only
-
#eql?(other)
Alias for #==.
Instance Attribute Details
#documents (readonly)
# File 'lib/mongo/protocol/msg.rb', line 370
attr_reader :identifier, :documents
#identifier (readonly)
# File 'lib/mongo/protocol/msg.rb', line 370
attr_reader :identifier, :documents
Instance Method Details
#==(other) Also known as: #eql?
# 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 #==.
# File 'lib/mongo/protocol/msg.rb', line 377
alias :eql? :==