Class: ProxyRb::UserPasswords::VaultUserPassword
- Inherits:
-
Object
- Object
- ProxyRb::UserPasswords::VaultUserPassword
- Includes:
- Contracts::Builtin, Contracts::Core
- Defined in:
- lib/proxy_rb/user_passwords/vault_user_password.rb
Overview
Be a password return from vault
Instance Method Summary collapse
-
#initialize(response) ⇒ VaultUserPassword
constructor
A new instance of VaultUserPassword.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ VaultUserPassword
Returns a new instance of VaultUserPassword.
17 18 19 |
# File 'lib/proxy_rb/user_passwords/vault_user_password.rb', line 17 def initialize(response) @response = response.data end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/proxy_rb/user_passwords/vault_user_password.rb', line 22 def to_s response[:password].to_s end |