Class: Bidi2pdf::Bidi::Commands::ProvideCredentials

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/bidi2pdf/bidi/commands/provide_credentials.rb

Instance Method Summary collapse

Methods included from Base

#==, #as_payload, #eql?, #hash, #inspect

Constructor Details

#initialize(request:, username:, password:) ⇒ ProvideCredentials

Returns a new instance of ProvideCredentials.



9
10
11
12
13
# File 'lib/bidi2pdf/bidi/commands/provide_credentials.rb', line 9

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

Instance Method Details

#method_nameObject



27
28
29
# File 'lib/bidi2pdf/bidi/commands/provide_credentials.rb', line 27

def method_name
  "network.continueWithAuth"
end

#paramsObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/bidi2pdf/bidi/commands/provide_credentials.rb', line 15

def params
  {
    request: @request,
    action: "provideCredentials",
    credentials: {
      type: "password",
      username: @username,
      password: @password
    }
  }
end