Method: Mongo::Session#materialized?

Defined in:
lib/mongo/session.rb

#materialized?Boolean

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:

  • (Boolean)

Since:

  • 2.5.0



1159
1160
1161
1162
1163
1164
1165
# File 'lib/mongo/session.rb', line 1159

def materialized?
  if ended?
    raise Error::SessionEnded
  end

  !@server_session.nil?
end