Module: Palapala
- Defined in:
- lib/palapala.rb,
lib/palapala/pdf.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 Classes: Pdf, Renderer, WebSocketClient
Constant Summary collapse
- VERSION =
"0.1.12"
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
27 28 29 |
# File 'lib/palapala.rb', line 27 def chrome_headless_shell_version @chrome_headless_shell_version end |
.chrome_params ⇒ Object
params to pass to Chrome when launched as a child process
11 12 13 |
# File 'lib/palapala.rb', line 11 def chrome_params @chrome_params end |
.debug ⇒ Object
debug mode
14 15 16 |
# File 'lib/palapala.rb', line 14 def debug @debug end |
.defaults ⇒ Object
default options for PDF generation
17 18 19 |
# File 'lib/palapala.rb', line 17 def defaults @defaults end |
.headless_chrome_path ⇒ Object
path to the headless Chrome executable when using the child process renderer
20 21 22 |
# File 'lib/palapala.rb', line 20 def headless_chrome_path @headless_chrome_path end |
.headless_chrome_url ⇒ Object
URL to the headless Chrome instance when using the remote renderer (priority)
23 24 25 |
# File 'lib/palapala.rb', line 23 def headless_chrome_url @headless_chrome_url end |
Class Method Details
.setup {|_self| ... } ⇒ Object
5 6 7 |
# File 'lib/palapala.rb', line 5 def self.setup yield self end |