Module: Mongo::Operation::Executable
- Included in:
- Aggregate::Command, Aggregate::OpMsg, CollectionsInfo, Command::Command, Command::OpMsg, Count::Command, Count::OpMsg, Create::Command, Create::OpMsg, CreateIndex::Command, CreateIndex::OpMsg, CreateUser::Command, CreateUser::OpMsg, Delete::Command, Delete::Legacy, Delete::OpMsg, Distinct::Command, Distinct::OpMsg, Drop::Command, Drop::OpMsg, DropDatabase::Command, DropDatabase::OpMsg, DropIndex::Command, DropIndex::OpMsg, Mongo::Operation::Explain::Command, Mongo::Operation::Explain::Legacy, Mongo::Operation::Explain::OpMsg, Find::Command, Find::Legacy, Find::OpMsg, GetMore::Command, GetMore::Legacy, GetMore::OpMsg, Indexes::Command, Indexes::Legacy, Indexes::OpMsg, Insert::Command, Insert::Legacy, Insert::OpMsg, KillCursors::Command, KillCursors::Legacy, KillCursors::OpMsg, ListCollections::Command, ListCollections::OpMsg, MapReduce::Command, MapReduce::OpMsg, ParallelScan::Command, ParallelScan::OpMsg, RemoveUser::Command, RemoveUser::OpMsg, Update::Command, Update::Legacy, Update::OpMsg, UpdateUser::Command, UpdateUser::OpMsg, UsersInfo::Command, UsersInfo::OpMsg
- Defined in:
- lib/mongo/operation/shared/executable.rb
Overview
Shared executable behavior of operations.
Instance Method Summary collapse
Instance Method Details
#execute(server) ⇒ Object
23 24 25 26 27 |
# File 'lib/mongo/operation/shared/executable.rb', line 23 def execute(server) result = Result.new((server)) process_result(result, server) result.validate! end |