Module: Mongo::Operation::Executable
- Included in:
- Aggregate::Command, CollectionsInfo, Command::Command, Count::Command, Create::Command, CreateIndex::Command, CreateUser::Command, Delete::Command, Delete::Legacy, Distinct::Command, Drop::Command, DropDatabase::Command, DropIndex::Command, Mongo::Operation::Explain::Command, Mongo::Operation::Explain::Legacy, Find::Command, Find::Legacy, GetMore::Command, GetMore::Legacy, Indexes::Command, Indexes::Legacy, Insert::Command, Insert::Legacy, KillCursors::Command, KillCursors::Legacy, ListCollections::Command, MapReduce::Command, OpMsgBase, ParallelScan::Command, RemoveUser::Command, Update::Command, Update::Legacy, UpdateUser::Command, UsersInfo::Command
- 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 = get_result(server) process_result(result, server) result.validate! end |