Class: LogStash::Util::Password

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/util/password.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(password) ⇒ Password

Returns a new instance of Password.



10
11
12
# File 'lib/logstash/util/password.rb', line 10

def initialize(password)
  @value = password
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/logstash/util/password.rb', line 7

def value
  @value
end

Instance Method Details

#inspectObject



20
21
22
# File 'lib/logstash/util/password.rb', line 20

def inspect
  return to_s
end

#to_sObject



15
16
17
# File 'lib/logstash/util/password.rb', line 15

def to_s
  return "<password>"
end