Method: XGen::Mongo::Driver::Collection#options

Defined in:
lib/mongo/collection.rb

#optionsObject

Return a hash containing options that apply to this collection. ‘create’ will be the collection name. For the other possible keys and values, see DB#create_collection.



155
156
157
# File 'lib/mongo/collection.rb', line 155

def options
  @db.collections_info(@name).next_object()['options']
end