Method: Mongo::Socket#timeout

Defined in:
lib/mongo/socket.rb

#timeoutFloat (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 timeout The socket timeout.

Returns:

  • (Float)

    timeout The socket timeout.

Since:

  • 2.0.0



87
88
89
# File 'lib/mongo/socket.rb', line 87

def timeout
  @timeout
end