Method: Mongo::Server::Monitor#server

Defined in:
lib/mongo/server/monitor.rb

#serverServer (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.

Returns server The server that this monitor is monitoring.

Since:

  • 2.0.0

Returns:

  • server The server that this monitor is monitoring.

API:

  • private



100
101
102
# File 'lib/mongo/server/monitor.rb', line 100

def server
  @server
end