Class: Gkhtmltopdf::DSL
- Inherits:
-
Object
- Object
- Gkhtmltopdf::DSL
- Defined in:
- lib/gkhtmltopdf/dsl.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize ⇒ DSL
constructor
A new instance of DSL.
- #open(options) ⇒ Object
- #save_pdf(url, output_path, print_options: {}) ⇒ Object
Constructor Details
Instance Method Details
#close ⇒ Object
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() @converter.open(**) 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: ) end |