Method: BSON::ObjectId#hash

Defined in:
lib/bson/object_id.rb

#hashInteger

Get the hash value for the object id.

Examples:

Get the hash value.

object_id.hash

Returns:

Since:

  • 2.0.0



122
123
124
# File 'lib/bson/object_id.rb', line 122

def hash
  generate_data.hash
end