Class: DefaultHttpClientConfig
- Inherits:
-
Object
- Object
- DefaultHttpClientConfig
- Defined in:
- lib/default_http_client_config.rb
Instance Attribute Summary collapse
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#connection_request_timeout ⇒ Object
Returns the value of attribute connection_request_timeout.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#retry_interval ⇒ Object
Returns the value of attribute retry_interval.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DefaultHttpClientConfig
constructor
A new instance of DefaultHttpClientConfig.
Constructor Details
#initialize ⇒ DefaultHttpClientConfig
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_timeout ⇒ Object
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_timeout ⇒ Object
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_retries ⇒ Object
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_interval ⇒ Object
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
.create ⇒ Object
9 10 11 |
# File 'lib/default_http_client_config.rb', line 9 def self.create DefaultHttpClientConfig.new end |