Class: DefaultHttpClientConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaultHttpClientConfig

Returns a new instance of DefaultHttpClientConfig.



13
14
15
16
17
18
# File 'lib/default_http_client_config.rb', line 13

def initialize
  @connect_timeout = 3.0
  @connection_request_timeout = 3.0
  @retry_interval = 0.5
  @max_retries = 5
end

Instance Attribute Details

#connect_timeoutObject

Returns the value of attribute connect_timeout.



4
5
6
# File 'lib/default_http_client_config.rb', line 4

def connect_timeout
  @connect_timeout
end

#connection_request_timeoutObject

Returns the value of attribute connection_request_timeout.



4
5
6
# File 'lib/default_http_client_config.rb', line 4

def connection_request_timeout
  @connection_request_timeout
end

#max_retriesObject

Returns the value of attribute max_retries.



4
5
6
# File 'lib/default_http_client_config.rb', line 4

def max_retries
  @max_retries
end

#retry_intervalObject

Returns the value of attribute retry_interval.



4
5
6
# File 'lib/default_http_client_config.rb', line 4

def retry_interval
  @retry_interval
end

Class Method Details

.createObject



9
10
11
# File 'lib/default_http_client_config.rb', line 9

def self.create
  DefaultHttpClientConfig.new
end