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
403 404 405 |
# File 'lib/pdfcrowd.rb', line 403 def assert_pdfcrowd raise "Assertion failed !" unless yield end |
#out_stream(name, use_ssl) ⇒ Object
447 448 449 450 451 452 453 |
# File 'lib/pdfcrowd.rb', line 447 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 |