class LogStash::Util::Password

This class exists to quietly wrap a password string so that, when printed or logged, you don't accidentally print the password itself.

Attributes

value[R]

Public Class Methods

new(password) click to toggle source
# File lib/logstash/util/password.rb, line 11
def initialize(password)
  @value = password
end

Public Instance Methods

inspect() click to toggle source
# File lib/logstash/util/password.rb, line 21
def inspect
  return to_s
end
to_s() click to toggle source
# File lib/logstash/util/password.rb, line 16
def to_s
  return "<password>"
end