class Mongo::Operation::Commands::UsersInfo

A MongoDB operation to get info of a particular user in a database.

@example Create the users info operation.

Read::UsersInfo.new(:name => 'emily', :db_name => 'test-db')

Initialization:

param [ Hash ] spec The specifications for the users info operation.

option spec :user_name [ String ] The name of the user.
option spec :db_name [ String ] The name of the database where the user exists.
option spec :options [ Hash ] Options for the operation.

@since 2.1.0

Private Instance Methods

message(server) click to toggle source
# File lib/mongo/operation/commands/users_info.rb, line 40
def message(server)
  Protocol::Query.new(db_name, query_coll, selector, options)
end
selector() click to toggle source
# File lib/mongo/operation/commands/users_info.rb, line 36
def selector
  { :usersInfo => user_name }
end