Method: Mongo::Session#validate!
- Defined in:
- lib/mongo/session.rb
#validate!(client) ⇒ Session
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.
Validate the session for use by the specified client.
The session must not be ended and must have been created by a client with the same cluster as the client that the session is to be used with.
1087 1088 1089 1090 1091 |
# File 'lib/mongo/session.rb', line 1087 def validate!(client) check_matching_cluster!(client) check_if_ended! self end |