Class: LicenseKit::BaseClient

Inherits:
Object
  • Object
show all
Defined in:
lib/licensekit/client.rb

Direct Known Subclasses

ManagementClient, RuntimeClient, SystemClient

Instance Method Summary collapse

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 = retry_options || RetryOptions.new
  @transport = transport || DefaultTransport.new
end