Class: Spidr::AuthCredential

Inherits:
Object
  • Object
show all
Defined in:
lib/spidr/auth_credential.rb

Overview

Represents HTTP Authentication credentials for a website.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject (readonly)

The password


11
12
13
# File 'lib/spidr/auth_credential.rb', line 11

def password
  @password
end

#usernameObject (readonly)

The username


8
9
10
# File 'lib/spidr/auth_credential.rb', line 8

def username
  @username
end