class Mongo::Server::PendingConnection
This class encapsulates connections during handshake and authentication.
@api private
Public Class Methods
new(socket, server, monitoring, options = {})
click to toggle source
# File lib/mongo/server/pending_connection.rb, line 24 def initialize(socket, server, monitoring, options = {}) @socket = socket @options = options @server = server @monitoring = monitoring end
Public Instance Methods
ensure_connected() { |socket| ... }
click to toggle source
# File lib/mongo/server/pending_connection.rb, line 31 def ensure_connected yield @socket end