Class: Mongo::Operation::Command::OpMsg Private

Inherits:
OpMsgBase
  • Object
show all
Defined in:
lib/mongo/operation/command/op_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.

A MongoDB command operation sent as an op message.

Since:

  • 2.5.2

Instance Attribute Summary

Attributes included from Executable

#context

Instance Method Summary collapse

Methods included from Timed

#apply_relevant_timeouts_to, #with_max_time

Methods included from Executable

#do_execute, #execute

Instance Method Details

#selector(connection) ⇒ Object

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.

Since:

  • 2.5.2



29
30
31
32
33
# File 'lib/mongo/operation/command/op_msg.rb', line 29

def selector(connection)
  spec[:selector].dup.tap do |sel|
    sel[:comment] = spec[:comment] unless spec[:comment].nil?
  end
end