lib/mongo/monitoring/event/secure.rb
def redacted(command_name, document)
          if REDACTED_COMMANDS.include?(command_name.to_s) &&
            !%w(1 true yes).include?(ENV['MONGO_RUBY_DRIVER_UNREDACT_EVENTS']&.downcase)
          then
            BSON::Document.new
          else
            document
          end
        end
# Redact secure information from the document if it's command is in the
# list.
#
# @example Get the redacted document.
#   secure.redacted(command_name, document)
#
# @param [ String, Symbol ] command_name The command name.
# @param [ BSON::Document ] document The document.
#
# @return [ BSON::Document ] The redacted document.
#
# @since 2.1.0
Redact secure information from the document if it's command is in the
list.
Redact secure information from the document if it ' s command is in the list .
def redacted(command_name, document)
          if REDACTED_COMMANDS.include?(command_name.to_s) &&
            !%w(1 true yes).include?(ENV['MONGO_RUBY_DRIVER_UNREDACT_EVENTS']&.downcase)
          then
            BSON::Document.new
          else
            document
          end
        end
def redacted ( command_name , document ) if REDACTED_COMMANDS . include? ( command_name . to_s ) && ! %w( 1 true yes ) . include? ( ENV [ 'MONGO_RUBY_DRIVER_UNREDACT_EVENTS' ] &. downcase ) then BSON :: Document . new else document end end
Redact secure information from the document if it's command is in the
list.
Redact secure information from the document if it ' s command is in the list .
The redacted document.
The redacted document .
 BSON::Document 
command_name
document
document The document.
document The document .
example
Get the redacted document. secure.redacted(command_name, document)
Get the redacted document . secure . redacted ( command_name document )
since
None