Class: Bidi2pdf::Bidi::Commands::NetworkContinue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

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

Constructor Details

#initialize(request:, headers:) ⇒ NetworkContinue

Returns a new instance of NetworkContinue.



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

def initialize(request:, headers:)
  @headers = headers
  @request = request
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



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

def headers
  @headers
end

#requestObject (readonly)

Returns the value of attribute request.



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

def request
  @request
end

Instance Method Details

#method_nameObject



16
17
18
# File 'lib/bidi2pdf/bidi/commands/network_continue.rb', line 16

def method_name
  "network.continueRequest"
end

#paramsObject



20
21
22
23
24
25
# File 'lib/bidi2pdf/bidi/commands/network_continue.rb', line 20

def params
  {
    request: request,
    headers: headers
  }.compact
end