Class: Spidr::AuthCredential

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

- (AuthCredential) initialize(username, password)

Creates a new credential used for authentication.

Parameters:

  • (String) username — The username for the credential.
  • (String) password — The password for the credential.


19
20
21
22
# File 'lib/spidr/auth_credential.rb', line 19

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

Instance Attribute Details

- (Object) password (readonly)

The password



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

def password
  @password
end

- (Object) username (readonly)

The username



5
6
7
# File 'lib/spidr/auth_credential.rb', line 5

def username
  @username
end