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.

Parameters:

  • username (String)

    The username for the credential.

  • password (String)

    The password for the credential.



24
25
26
27
# File 'lib/spidr/auth_credential.rb', line 24

def initialize(username,password)
  @username = username
  @password = password
end

Instance Attribute Details

#passwordObject (readonly)

The password



13
14
15
# File 'lib/spidr/auth_credential.rb', line 13

def password
  @password
end

#usernameObject (readonly)

The username



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

def username
  @username
end