Method: IDRCloudClient#initialize
- Defined in:
- lib/idr_cloud_client.rb
#initialize(url, conversion_timeout: -1,, auth: nil) ⇒ IDRCloudClient
Constructor, setup the converter details Params:
url-
string, the URL of the web service.
conversion_timeout-
int, (optional) the time to wait (in seconds) before timing out. Values <= 0 are treated as infinite. Set to -1 by default.
auth-
array, (optional) the username and password to use for HTTP Authentication. Set to nil by default
44 45 46 47 48 49 |
# File 'lib/idr_cloud_client.rb', line 44 def initialize(url, conversion_timeout: -1, auth: nil) @base_endpoint = url @endpoint = @base_endpoint @convert_timeout = conversion_timeout @auth = auth end |