Method: Mongo::Client#==

Defined in:
lib/mongo/client.rb

#==(other) ⇒ true, false Also known as: eql?

Determine if this client is equivalent to another object.

Examples:

Check client equality.

client == other

Since:

  • 2.0.0



179
180
181
182
# File 'lib/mongo/client.rb', line 179

def ==(other)
  return false unless other.is_a?(Client)
  cluster == other.cluster && options == other.options
end