Method: Moped::Connection#receive_replies

Defined in:
lib/moped/connection.rb

#receive_replies(operations) ⇒ Array<Hash>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get the replies to the database operation.

Examples:

Get the replies.

connection.receive_replies(operations)

Parameters:

  • operations (Array<Message>)

    The query or get more ops.

Returns:

  • (Array<Hash>)

    The returned deserialized documents.

Since:

  • 1.0.0



117
118
119
120
121
# File 'lib/moped/connection.rb', line 117

def receive_replies(operations)
  operations.map do |operation|
    operation.receive_replies(self)
  end
end