Class: LogStash::Util::Password
- Inherits:
-
Object
- Object
- LogStash::Util::Password
- Defined in:
- lib/logstash/util/password.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(password) ⇒ Password
constructor
A new instance of Password.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(password) ⇒ Password
Returns a new instance of Password.
9 10 11 |
# File 'lib/logstash/util/password.rb', line 9 def initialize(password) @value = password end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/logstash/util/password.rb', line 6 def value @value end |
Instance Method Details
#inspect ⇒ Object
19 20 21 |
# File 'lib/logstash/util/password.rb', line 19 def inspect return to_s end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/logstash/util/password.rb', line 14 def to_s return "<password>" end |