Module: DocRaptor
- Defined in:
- lib/docraptor/version.rb,
lib/docraptor.rb,
lib/docraptor/api_error.rb,
lib/docraptor/api_client.rb,
lib/docraptor/models/doc.rb,
lib/docraptor/api/doc_api.rb,
lib/docraptor/configuration.rb,
lib/docraptor/models/async_doc.rb,
lib/docraptor/models/doc_status.rb,
lib/docraptor/models/prince_options.rb
Overview
#DocRaptor
#A native client library for the DocRaptor HTML to PDF/XLS service.
OpenAPI spec version: 1.4.0
Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.19
Defined Under Namespace
Classes: ApiClient, ApiError, AsyncDoc, Configuration, Doc, DocApi, DocStatus, PrinceOptions
Constant Summary collapse
- VERSION =
'2.0.0'
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
DocRaptor.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
36 37 38 39 40 41 42 |
# File 'lib/docraptor.rb', line 36 def configure if block_given? yield(Configuration.default) else Configuration.default end end |