Class: Gkhtmltopdf::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/gkhtmltopdf/dsl.rb

Instance Method Summary collapse

Constructor Details

#initializeDSL

Returns a new instance of DSL.



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

def initialize
  @converter = Converter.new
end

Instance Method Details

#closeObject



13
14
15
# File 'lib/gkhtmltopdf/dsl.rb', line 13

def close
  @converter.close
end

#open(options) ⇒ Object



9
10
11
# File 'lib/gkhtmltopdf/dsl.rb', line 9

def open(options)
  @converter.open(**options)
end

#save_pdf(url, output_path, print_options: {}) ⇒ Object



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

def save_pdf(url, output_path, print_options: {})
  @converter.save_pdf(url, output_path, print_options: print_options)
end