Method: Pdfcrowd::HtmlToPdfClient#initialize
- Defined in:
- lib/pdfcrowd.rb
#initialize(user_name, api_key) ⇒ HtmlToPdfClient
Returns a new instance of HtmlToPdfClient.
778 779 780 781 782 783 784 785 786 787 |
# File 'lib/pdfcrowd.rb', line 778 def initialize(user_name, api_key) @helper = ConnectionHelper.new(user_name, api_key) @fields = { 'input_format'=>'html', 'output_format'=>'pdf' } @file_id = 1 @files = {} @raw_data = {} end |