Class: ProxyRb::UserPasswords::VaultUserPassword

Inherits:
Object
  • Object
show all
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

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_sObject



22
23
24
# File 'lib/proxy_rb/user_passwords/vault_user_password.rb', line 22

def to_s
  response[:password].to_s
end