Class: Spidr::AuthCredential
- Inherits:
-
Object
- Object
- Spidr::AuthCredential
- Defined in:
- lib/spidr/auth_credential.rb
Overview
Represents HTTP Authentication credentials for a website.
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
The password.
-
#username ⇒ Object
readonly
The username.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ AuthCredential
constructor
Creates a new credential used for authentication.
Constructor Details
#initialize(username, password) ⇒ AuthCredential
Creates a new credential used for authentication.
24 25 26 27 |
# File 'lib/spidr/auth_credential.rb', line 24 def initialize(username,password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object (readonly)
The password
13 14 15 |
# File 'lib/spidr/auth_credential.rb', line 13 def password @password end |
#username ⇒ Object (readonly)
The username
10 11 12 |
# File 'lib/spidr/auth_credential.rb', line 10 def username @username end |