Method: Mongo::Operation::CollectionsInfo::Result#initialize

Defined in:
lib/mongo/operation/collections_info/result.rb

#initialize(replies, connection_description, connection_global_id, database_name) ⇒ Result

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.

Initialize a new result.

Parameters:

  • replies (Array<Protocol::Message> | nil)

    The wire protocol replies, if any.

  • connection_description (Server::Description)

    Server description of the server that performed the operation that this result is for.

  • connection_global_id (Integer)

    Global id of the connection on which the operation that this result is for was performed.

  • database_name (String)

    The name of the database that the query was sent to.

Since:

  • 2.1.0



42
43
44
45
# File 'lib/mongo/operation/collections_info/result.rb', line 42

def initialize(replies, connection_description, connection_global_id, database_name)
  super(replies, connection_description, connection_global_id)
  @database_name = database_name
end