Method: Mongo::Grid::FSBucket#prefix

Defined in:
lib/mongo/grid/fs_bucket.rb

#prefixString

Get the prefix for the GridFS

Examples:

Get the prefix.

fs.prefix

Returns:

  • (String)

    The GridFS prefix.

Since:

  • 2.0.0



190
191
192
# File 'lib/mongo/grid/fs_bucket.rb', line 190

def prefix
  @options[:fs_name] || @options[:bucket_name] || DEFAULT_ROOT
end