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.
1078 1079 1080 1081 1082 |
# File 'lib/mongo/session.rb', line 1078 def validate!(client) check_matching_cluster!(client) check_if_ended! self end |