lib/mongo/collection/view/builder/map_reduce.rb
# Get the specification to pass to the map/reduce operation.
#
# @example Get the specification.
#   builder.specification
#
# @return [ Hash ] The specification.
#
# @since 2.2.0
Get the specification to pass to the map/reduce operation.
Get the specification to pass to the map / reduce operation .
def specification
            spec = {
              selector: map_reduce_command,
              db_name: database.name,
              read: read,
              session: options[:session]
            }
            write?(spec) ? spec.merge!(write_concern: write_concern) : spec
          end
def specification spec = { selector : map_reduce_command , db_name : database . name , read : read , session : options [ :session ] } write? ( spec ) ? spec . merge! ( write_concern : write_concern ) : spec end
Get the specification to pass to the map/reduce operation.
Get the specification to pass to the map / reduce operation .
None
 Hash 
example
Get the specification. builder.specification
Get the specification . builder . specification
since
None