lib/mongo/operation/explain/legacy.rb in mongo-2.7.2 vs lib/mongo/operation/explain/legacy.rb in mongo-2.8.0.rc0
- old
+ new
@@ -23,25 +23,10 @@
# @since 2.0.0
class Legacy
include Specifiable
include Executable
include ReadPreferenceSupported
-
- # Execute the operation.
- #
- # @example
- # operation.execute(server)
- #
- # @param [ Mongo::Server ] server The server to send the operation to.
- #
- # @return [ Mongo::Operation::Explain::Result ] The operation result.
- #
- # @since 2.5.2
- def execute(server)
- result = Result.new(dispatch_message(server))
- process_result(result, server)
- result.validate!
- end
+ include PolymorphicResult
private
def message(server)
Protocol::Query.new(db_name, coll_name, command(server), options(server))