Method: Mongo::Collection::View::MapReduce#out_collection_name
- Defined in:
- lib/mongo/collection/view/map_reduce.rb
#out_collection_name ⇒ Object
Returns the collection name where the map-reduce result is written to. If the result is returned inline, returns nil.
171 172 173 174 175 176 177 |
# File 'lib/mongo/collection/view/map_reduce.rb', line 171 def out_collection_name if [:out].respond_to?(:keys) [:out][OUT_ACTIONS.find do |action| [:out][action] end] end || [:out] end |