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.
22 23 24 25 |
# File 'lib/spidr/auth_credential.rb', line 22 def initialize(username,password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object (readonly)
The password
11 12 13 |
# File 'lib/spidr/auth_credential.rb', line 11 def password @password end |
#username ⇒ Object (readonly)
The username
8 9 10 |
# File 'lib/spidr/auth_credential.rb', line 8 def username @username end |