Class: DeepL::HTTPClientOptions
- Inherits:
 - 
      Object
      
        
- Object
 - DeepL::HTTPClientOptions
 
 
- Defined in:
 - lib/http_client_options.rb
 
Instance Attribute Summary collapse
- 
  
    
      #cert_path  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute cert_path.
 - 
  
    
      #enable_ssl_verification  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute enable_ssl_verification.
 - 
  
    
      #open_timeout  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute open_timeout.
 - 
  
    
      #proxy  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute proxy.
 - 
  
    
      #read_timeout  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute read_timeout.
 - 
  
    
      #send_platform_info  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute send_platform_info.
 - 
  
    
      #ssl_timeout  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute ssl_timeout.
 - 
  
    
      #write_timeout  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute write_timeout.
 
Instance Method Summary collapse
- 
  
    
      #initialize(proxy, cert_path, enable_ssl_verification: true, open_timeout: nil, read_timeout: nil, write_timeout: nil, ssl_timeout: nil)  ⇒ HTTPClientOptions 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
rubocop:disable Metrics/ParameterLists.
 
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_path ⇒ Object (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_verification ⇒ Object (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_timeout ⇒ Object (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  | 
  
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
      8 9 10  | 
    
      # File 'lib/http_client_options.rb', line 8 def proxy @proxy end  | 
  
#read_timeout ⇒ Object (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_info ⇒ Object (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_timeout ⇒ Object (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_timeout ⇒ Object (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  |