Class: Bidi2pdf::Bidi::Commands::BrowserRemoveUserContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

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

Constructor Details

#initialize(user_context_id: nil) ⇒ BrowserRemoveUserContext

Returns a new instance of BrowserRemoveUserContext.



11
12
13
# File 'lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb', line 11

def initialize(user_context_id: nil)
  @user_context_id = user_context_id
end

Instance Attribute Details

#user_context_idObject (readonly)

Returns the value of attribute user_context_id.



9
10
11
# File 'lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb', line 9

def user_context_id
  @user_context_id
end

Instance Method Details

#method_nameObject



21
22
23
# File 'lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb', line 21

def method_name
  "browser.removeUserContext"
end

#paramsObject



15
16
17
18
19
# File 'lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb', line 15

def params
  {
    userContext: @user_context_id
  }.compact
end