lib/mongo/cursor.rb
# Get the parsed collection name.
#
# @example Get the parsed collection name.
#   cursor.coll_name
#
# @return [ String ] The collection name.
#
# @since 2.2.0
Get the parsed collection name.
Get the parsed collection name .
def collection_name
      if @namespace
        ns_components = @namespace.split('.')
        ns_components[1...ns_components.length].join('.')
      else
        collection.name
      end
    end
def collection_name if @namespace ns_components = @namespace . split ( '.' ) ns_components [ 1 ... ns_components . length ] . join ( '.' ) else collection . name end end
Get the parsed collection name.
Get the parsed collection name .
# In most cases, this will be equivalent to the name of the collection # object in the driver. However, in some cases (e.g. when connected # to an Atlas Data Lake), the namespace returned by the find command # may be different, which is why we want to use the collection name based # on the namespace in the command result. # Often, the namespace will be in the format "database.collection". # However, sometimes the collection name will contain periods, which # is why this method joins all the namespace components after the first.
The collection name.
The collection name .
 String 
example
Get the parsed collection name. cursor.coll_name
Get the parsed collection name . cursor . coll_name
since
None