Method: Mongo::Session#snapshot?

Defined in:
lib/mongo/session.rb

#snapshot?true | false

Returns Whether the session is configured for snapshot reads.

Returns:

  • (true | false)

    Whether the session is configured for snapshot reads.

Since:

  • 2.5.0



124
125
126
# File 'lib/mongo/session.rb', line 124

def snapshot?
  !!options[:snapshot]
end