Module: ProxyRb::Api::Passwords

Includes:
Contracts::Builtin, Contracts::Core
Included in:
ProxyRb::Api
Defined in:
lib/proxy_rb/api/passwords.rb

Overview

Helpers to access passwords

Instance Method Summary collapse

Instance Method Details

#password(user_name) ⇒ String

Get password for user

Parameters:

  • user_name (String)

    The user name

Returns:

  • (String)

    The password



21
22
23
# File 'lib/proxy_rb/api/passwords.rb', line 21

def password(user_name)
  ProxyRb.config.password_fetcher.call(user_name.to_s)
end