Class: LicenseKit::BaseClient
- Inherits:
-
Object
- Object
- LicenseKit::BaseClient
- Defined in:
- lib/licensekit/client.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(base_url:, auth_type:, auth_value:, headers: nil, timeout: nil, user_agent: nil, retry_options: nil, transport: nil) ⇒ BaseClient
constructor
A new instance of BaseClient.
Constructor Details
#initialize(base_url:, auth_type:, auth_value:, headers: nil, timeout: nil, user_agent: nil, retry_options: nil, transport: nil) ⇒ BaseClient
Returns a new instance of BaseClient.
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/licensekit/client.rb', line 61 def initialize(base_url:, auth_type:, auth_value:, headers: nil, timeout: nil, user_agent: nil, retry_options: nil, transport: nil) @base_url = LicenseKit.normalize_base_url(base_url) @default_headers = normalize_headers(headers) @timeout = timeout @user_agent = user_agent @auth_type = auth_type @auth_value = auth_value @retry = || RetryOptions.new @transport = transport || DefaultTransport.new end |