lib/mongo/operation/shared/specifiable.rb in mongo-2.19.2 vs lib/mongo/operation/shared/specifiable.rb in mongo-2.19.3
- old
+ new
@@ -258,9 +258,16 @@
# @since 2.0.0
def index
spec[INDEX]
end
+ # Get the index id from the spec.
+ #
+ # @return [ String ] The index id.
+ def index_id
+ spec[:index_id]
+ end
+
# Get the index name from the spec.
#
# @example Get the index name.
# specifiable.index_name
#