Class: Puppeteer::NetworkManager::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/network_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username:, password:) ⇒ Credentials

Returns a new instance of Credentials.

Parameters:

  • username (String|NilClass)
  • password (String|NilClass)


9
10
11
12
# File 'lib/puppeteer/network_manager.rb', line 9

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

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



13
14
15
# File 'lib/puppeteer/network_manager.rb', line 13

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



13
14
15
# File 'lib/puppeteer/network_manager.rb', line 13

def username
  @username
end