Module: Palapala

Defined in:
lib/palapala.rb,
lib/palapala/pdf.rb,
lib/palapala/helper.rb,
lib/palapala/version.rb,
lib/palapala/renderer.rb,
lib/palapala/chrome_process.rb,
lib/palapala/web_socket_client.rb

Defined Under Namespace

Modules: ChromeProcess, Helper Classes: Pdf, Renderer, WebSocketClient

Constant Summary collapse

VERSION =
"0.1.18"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.chrome_headless_shell_versionObject

Chrome headless shell version to use (stable, beta, dev, canary, etc.) when launching a new Chrome instance using npx



28
29
30
# File 'lib/palapala.rb', line 28

def chrome_headless_shell_version
  @chrome_headless_shell_version
end

.chrome_paramsObject

params to pass to Chrome when launched as a child process



12
13
14
# File 'lib/palapala.rb', line 12

def chrome_params
  @chrome_params
end

.debugObject

debug mode



15
16
17
# File 'lib/palapala.rb', line 15

def debug
  @debug
end

.defaultsObject

default options for PDF generation



18
19
20
# File 'lib/palapala.rb', line 18

def defaults
  @defaults
end

.headless_chrome_pathObject

path to the headless Chrome executable when using the child process renderer



21
22
23
# File 'lib/palapala.rb', line 21

def headless_chrome_path
  @headless_chrome_path
end

.headless_chrome_urlObject

URL to the headless Chrome instance when using the remote renderer (priority)



24
25
26
# File 'lib/palapala.rb', line 24

def headless_chrome_url
  @headless_chrome_url
end

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Palapala)

    the object that the method was called on



6
7
8
# File 'lib/palapala.rb', line 6

def self.setup
  yield self
end