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.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.chrome_paramsObject

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

.debugObject

debug mode



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

def debug
  @debug
end

.defaultsObject

default options for PDF generation



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

def defaults
  @defaults
end

.headless_chrome_pathObject

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_urlObject

URL to the headless Chrome instance when using the remote renderer



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

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



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

def self.setup
  yield self
end