Top Level Namespace
Defined Under Namespace
Modules: Pdfcrowd
Constant Summary collapse
- API_SELECTOR_BASE =
'/api/'
- HTTP_API_URI =
"http://#{$api_hostname}#{API_SELECTOR_BASE}"
- HTTPS_API_URI =
"https://#{$api_hostname}#{API_SELECTOR_BASE}"
Instance Method Summary collapse
Instance Method Details
#assert_pdfcrowd ⇒ Object
431 432 433 |
# File 'lib/pdfcrowd.rb', line 431 def assert_pdfcrowd raise "Assertion failed !" unless yield end |
#out_stream(name, use_ssl) ⇒ Object
475 476 477 478 479 480 481 |
# File 'lib/pdfcrowd.rb', line 475 def out_stream(name, use_ssl) fname = $test_dir + "/out/rb_client_#{name}" if use_ssl fname = fname + '_ssl' end return open(fname + '.pdf', 'wb') end |