Class: Rugged::Credentials::UserPassword
- Inherits:
-
Object
- Object
- Rugged::Credentials::UserPassword
- Defined in:
- lib/rugged/credentials.rb,
ext/rugged/rugged_cred.c
Overview
A plain-text username and password credential object.
Instance Method Summary collapse
- #call(url, username_from_url, allowed_types) ⇒ Object
-
#initialize(options) ⇒ UserPassword
constructor
A new instance of UserPassword.
Constructor Details
#initialize(options) ⇒ UserPassword
Returns a new instance of UserPassword.
10 11 12 |
# File 'lib/rugged/credentials.rb', line 10 def initialize() @username, @password = [:username], [:password] end |
Instance Method Details
#call(url, username_from_url, allowed_types) ⇒ Object
14 15 16 |
# File 'lib/rugged/credentials.rb', line 14 def call(url, username_from_url, allowed_types) self end |