Class: Selenium::WebDriver::BiDi::Credentials
- Inherits:
 - 
      Object
      
        
- Object
 - Selenium::WebDriver::BiDi::Credentials
 
 
- Defined in:
 - lib/selenium/webdriver/bidi/network/credentials.rb
 
Instance Attribute Summary collapse
- 
  
    
      #password  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute password.
 - 
  
    
      #username  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute username.
 
Instance Method Summary collapse
- #as_json ⇒ Object
 - 
  
    
      #initialize(username: nil, password: nil)  ⇒ Credentials 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Credentials.
 
Constructor Details
#initialize(username: nil, password: nil) ⇒ Credentials
Returns a new instance of Credentials.
      26 27 28 29  | 
    
      # File 'lib/selenium/webdriver/bidi/network/credentials.rb', line 26 def initialize(username: nil, password: nil) @username = username @password = password end  | 
  
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
      24 25 26  | 
    
      # File 'lib/selenium/webdriver/bidi/network/credentials.rb', line 24 def password @password end  | 
  
#username ⇒ Object
Returns the value of attribute username.
      24 25 26  | 
    
      # File 'lib/selenium/webdriver/bidi/network/credentials.rb', line 24 def username @username end  | 
  
Instance Method Details
#as_json ⇒ Object
      31 32 33 34 35 36 37 38 39  | 
    
      # File 'lib/selenium/webdriver/bidi/network/credentials.rb', line 31 def as_json return nil unless username && password { type: 'password', username: username, password: password } end  |