Module: Mongo::Operation::Executable

Overview

Shared executable behavior of operations.

Since:

  • 2.5.2

Instance Method Summary collapse

Instance Method Details

#execute(server) ⇒ Object

Since:

  • 2.5.2



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