Class: DeepL::HTTPClientOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proxy, cert_path, enable_ssl_verification: true, open_timeout: nil, read_timeout: nil, write_timeout: nil, ssl_timeout: nil) ⇒ HTTPClientOptions

rubocop:disable Metrics/ParameterLists



11
12
13
14
15
16
17
18
19
20
# File 'lib/http_client_options.rb', line 11

def initialize(proxy, cert_path, enable_ssl_verification: true, open_timeout: nil, # rubocop:disable Metrics/ParameterLists
               read_timeout: nil, write_timeout: nil, ssl_timeout: nil)
  @proxy = proxy
  @enable_ssl_verification = enable_ssl_verification
  @cert_path = cert_path
  @open_timeout = open_timeout
  @read_timeout = read_timeout
  @write_timeout = write_timeout
  @ssl_timeout = ssl_timeout
end

Instance Attribute Details

#cert_pathObject (readonly)

Returns the value of attribute cert_path.



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

def cert_path
  @cert_path
end

#enable_ssl_verificationObject (readonly)

Returns the value of attribute enable_ssl_verification.



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

def enable_ssl_verification
  @enable_ssl_verification
end

#open_timeoutObject (readonly)

Returns the value of attribute open_timeout.



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

def open_timeout
  @open_timeout
end

#proxyObject (readonly)

Returns the value of attribute proxy.



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

def proxy
  @proxy
end

#read_timeoutObject (readonly)

Returns the value of attribute read_timeout.



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

def read_timeout
  @read_timeout
end

#send_platform_infoObject (readonly)

Returns the value of attribute send_platform_info.



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

def send_platform_info
  @send_platform_info
end

#ssl_timeoutObject (readonly)

Returns the value of attribute ssl_timeout.



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

def ssl_timeout
  @ssl_timeout
end

#write_timeoutObject (readonly)

Returns the value of attribute write_timeout.



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

def write_timeout
  @write_timeout
end