Class: Bidi2pdf::Bidi::Commands::BrowserRemoveUserContext
- Inherits:
-
Object
- Object
- Bidi2pdf::Bidi::Commands::BrowserRemoveUserContext
- Includes:
- Base
- Defined in:
- lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb
Instance Attribute Summary collapse
-
#user_context_id ⇒ Object
readonly
Returns the value of attribute user_context_id.
Instance Method Summary collapse
-
#initialize(user_context_id: nil) ⇒ BrowserRemoveUserContext
constructor
A new instance of BrowserRemoveUserContext.
- #method_name ⇒ Object
- #params ⇒ Object
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_id ⇒ Object (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_name ⇒ Object
21 22 23 |
# File 'lib/bidi2pdf/bidi/commands/browser_remove_user_context.rb', line 21 def method_name "browser.removeUserContext" end |
#params ⇒ Object
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 |