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
-
.chrome_headless_shell_version ⇒ Object
Chrome headless shell version to use (stable, beta, dev, canary, etc.) when launching a new Chrome instance using npx.
-
.chrome_params ⇒ Object
params to pass to Chrome when launched as a child process.
-
.debug ⇒ Object
debug mode.
-
.defaults ⇒ Object
default options for PDF generation.
-
.headless_chrome_path ⇒ Object
path to the headless Chrome executable when using the child process renderer.
-
.headless_chrome_url ⇒ Object
URL to the headless Chrome instance when using the remote renderer (priority).
Class Method Summary collapse
Class Attribute Details
.chrome_headless_shell_version ⇒ Object
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_params ⇒ Object
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 |
.debug ⇒ Object
debug mode
15 16 17 |
# File 'lib/palapala.rb', line 15 def debug @debug end |
.defaults ⇒ Object
default options for PDF generation
18 19 20 |
# File 'lib/palapala.rb', line 18 def defaults @defaults end |
.headless_chrome_path ⇒ Object
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_url ⇒ Object
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
6 7 8 |
# File 'lib/palapala.rb', line 6 def self.setup yield self end |