Class: Bidi2pdf::Bidi::Commands::CreateWindow
- Inherits:
-
Object
- Object
- Bidi2pdf::Bidi::Commands::CreateWindow
show all
- Includes:
- Base
- Defined in:
- lib/bidi2pdf/bidi/commands/create_window.rb
Instance Method Summary
collapse
Methods included from Base
#==, #as_payload, #eql?, #hash, #inspect
Constructor Details
#initialize(user_context_id: nil, reference_context: nil, background: false) ⇒ CreateWindow
Returns a new instance of CreateWindow.
9
10
11
12
13
|
# File 'lib/bidi2pdf/bidi/commands/create_window.rb', line 9
def initialize(user_context_id: nil, reference_context: nil, background: false)
@user_context_id = user_context_id
@reference_context = reference_context
@background = background
end
|
Instance Method Details
#method_name ⇒ Object
15
16
17
|
# File 'lib/bidi2pdf/bidi/commands/create_window.rb', line 15
def method_name
"browsingContext.create"
end
|
#params ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/bidi2pdf/bidi/commands/create_window.rb', line 19
def params
{
type: type,
userContext: @user_context_id,
referenceContext: @reference_context,
background: @background
}.compact
end
|
#type ⇒ Object
28
|
# File 'lib/bidi2pdf/bidi/commands/create_window.rb', line 28
def type = "window"
|