class Mongo::Operation::Write::RemoveUser

A MongoDB remove user operation.

@example Create the remove user operation.

Write::RemoveUser.new(:db_name => 'test', :name => name)

Initialization:

param [ Hash ] spec The specifications for the remove.

option spec :name [ String ] The user name.
option spec :db_name [ String ] The name of the database.

@since 2.0.0

Private Instance Methods

message() click to toggle source
# File lib/mongo/operation/write/remove_user.rb, line 42
def message
  Protocol::Delete.new(db_name, Auth::User::COLLECTION, { user: user_name })
end
write_command_op() click to toggle source
# File lib/mongo/operation/write/remove_user.rb, line 38
def write_command_op
  Command::RemoveUser.new(spec)
end