Class: Mongo::Protocol::Msg::Section1 Private
- Inherits:
- 
      Object
      
        - Object
- Mongo::Protocol::Msg::Section1
 
- Defined in:
- lib/mongo/protocol/msg.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Encapsulates a type 1 OP_MSG section.
Instance Attribute Summary collapse
- #documents ⇒ Object readonly private
- #identifier ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?) private
- 
  
    
      #initialize(identifier, documents)  ⇒ Section1 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of Section1. 
Constructor Details
#initialize(identifier, documents) ⇒ Section1
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Section1.
| 366 367 368 | # File 'lib/mongo/protocol/msg.rb', line 366 def initialize(identifier, documents) @identifier, @documents = identifier, documents end | 
Instance Attribute Details
#documents ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 370 371 372 | # File 'lib/mongo/protocol/msg.rb', line 370 def documents @documents end | 
#identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 370 371 372 | # File 'lib/mongo/protocol/msg.rb', line 370 def identifier @identifier end | 
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 372 373 374 375 | # File 'lib/mongo/protocol/msg.rb', line 372 def ==(other) other.is_a?(Section1) && identifier == other.identifier && documents == other.documents end |