Class: Bidi2pdf::Bidi::Commands::ProvideCredentials
- Inherits:
-
Object
- Object
- Bidi2pdf::Bidi::Commands::ProvideCredentials
- Includes:
- Base
- Defined in:
- lib/bidi2pdf/bidi/commands/provide_credentials.rb
Instance Method Summary collapse
-
#initialize(request:, username:, password:) ⇒ ProvideCredentials
constructor
A new instance of ProvideCredentials.
- #method_name ⇒ Object
- #params ⇒ Object
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_name ⇒ Object
27 28 29 |
# File 'lib/bidi2pdf/bidi/commands/provide_credentials.rb', line 27 def method_name "network.continueWithAuth" end |
#params ⇒ Object
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 |