Class: LogStash::Util::Password
- Inherits:
- 
      Object
      
        - Object
- LogStash::Util::Password
 
- Defined in:
- lib/logstash/util/password.rb
Overview
This class exists to quietly wrap a password string so that, when printed or logged, you don’t accidentally print the password itself.
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.
| 11 12 13 | # File 'lib/logstash/util/password.rb', line 11 def initialize(password) @value = password end | 
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
| 8 9 10 | # File 'lib/logstash/util/password.rb', line 8 def value @value end | 
Instance Method Details
#inspect ⇒ Object
| 21 22 23 | # File 'lib/logstash/util/password.rb', line 21 def inspect return to_s end | 
#to_s ⇒ Object
| 16 17 18 | # File 'lib/logstash/util/password.rb', line 16 def to_s return "<password>" end |