class BSON::ObjectId

def inspect

Other tags:
    Since: - 2.0.0

Returns:
  • (String) - The object id in form BSON::ObjectId('id')

Other tags:
    Example: Inspect the object id. -
def inspect
  "BSON::ObjectId('#{self}')"
end