Class: VsClient::Configuration
- Inherits:
-
Object
- Object
- VsClient::Configuration
- Defined in:
- lib/vs_client/configuration.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
url => represent remote service (vendor search url).
-
#enable_http_debug_mode ⇒ Object
url => represent remote service (vendor search url).
-
#keep_alive_timeout ⇒ Object
url => represent remote service (vendor search url).
-
#logger ⇒ Object
url => represent remote service (vendor search url).
-
#open_timeout ⇒ Object
url => represent remote service (vendor search url).
-
#ssl_timeout ⇒ Object
url => represent remote service (vendor search url).
-
#timeout ⇒ Object
url => represent remote service (vendor search url).
-
#url ⇒ Object
url => represent remote service (vendor search url).
-
#use_ssl ⇒ Object
url => represent remote service (vendor search url).
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Set default values.
Constructor Details
#initialize ⇒ Configuration
Set default values
19 20 21 22 23 24 25 26 27 |
# File 'lib/vs_client/configuration.rb', line 19 def initialize @logger = nil @use_ssl = true @enable_http_debug_mode = false @keep_alive_timeout = 60 @open_timeout = 5 @timeout = 5 @api_version = '' end |
Instance Attribute Details
#api_version ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def api_version @api_version end |
#enable_http_debug_mode ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def enable_http_debug_mode @enable_http_debug_mode end |
#keep_alive_timeout ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def keep_alive_timeout @keep_alive_timeout end |
#logger ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def logger @logger end |
#open_timeout ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def open_timeout @open_timeout end |
#ssl_timeout ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def ssl_timeout @ssl_timeout end |
#timeout ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def timeout @timeout end |
#url ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def url @url end |
#use_ssl ⇒ Object
url => represent remote service (vendor search url). use_ssl => must be true if the url start with “https”. enable_http_debug_mode => enable tracing the request phases for debug use only. logger => represent Custom HSLogger we use in platform.
we can use different logger that has the same .log implementation.
keep_alive_timeout => represent the time in seconds to keep the current
tcp session opened for reusing the same tcp connection later.
open_timeout => time taken to open a connection with remote server. timeout => represent the time in seconds to read the data from remote server.
14 15 16 |
# File 'lib/vs_client/configuration.rb', line 14 def use_ssl @use_ssl end |