Class: Stigg::Sidecar::ApiConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, api_url: nil, edge_enabled: nil, edge_api_url: nil, request_timeout: nil) ⇒ ApiConfig

Parameters:

  • api_key (String)
  • api_url (String) (defaults to: nil)
  • edge_enabled (Boolean) (defaults to: nil)
  • edge_api_url (String) (defaults to: nil)


15
16
17
18
19
20
21
22
23
24
25
# File 'lib/stigg_sidecar_sdk/client.rb', line 15

def initialize(api_key,
               api_url: nil,
               edge_enabled: nil,
               edge_api_url: nil,
               request_timeout: nil)
  @api_key = api_key
  @api_url = api_url
  @edge_enabled = edge_enabled
  @edge_api_url = edge_api_url
  @request_timeout = request_timeout
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



8
9
10
# File 'lib/stigg_sidecar_sdk/client.rb', line 8

def api_key
  @api_key
end

#api_urlObject (readonly)

Returns the value of attribute api_url.



8
9
10
# File 'lib/stigg_sidecar_sdk/client.rb', line 8

def api_url
  @api_url
end

#edge_api_urlObject (readonly)

Returns the value of attribute edge_api_url.



8
9
10
# File 'lib/stigg_sidecar_sdk/client.rb', line 8

def edge_api_url
  @edge_api_url
end

#edge_enabledObject (readonly)

Returns the value of attribute edge_enabled.



8
9
10
# File 'lib/stigg_sidecar_sdk/client.rb', line 8

def edge_enabled
  @edge_enabled
end

#request_timeoutObject (readonly)

Returns the value of attribute request_timeout.



8
9
10
# File 'lib/stigg_sidecar_sdk/client.rb', line 8

def request_timeout
  @request_timeout
end