Class: Pinot::ClientConfig
- Inherits:
-
Object
- Object
- Pinot::ClientConfig
- Defined in:
- lib/pinot/config.rb
Instance Attribute Summary collapse
-
#broker_list ⇒ Object
Returns the value of attribute broker_list.
-
#controller_config ⇒ Object
Returns the value of attribute controller_config.
-
#extra_http_header ⇒ Object
Returns the value of attribute extra_http_header.
-
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
-
#use_multistage_engine ⇒ Object
Returns the value of attribute use_multistage_engine.
Instance Method Summary collapse
-
#initialize(broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil) ⇒ ClientConfig
constructor
A new instance of ClientConfig.
Constructor Details
#initialize(broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil) ⇒ ClientConfig
Returns a new instance of ClientConfig.
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/pinot/config.rb', line 16 def initialize( broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil ) @broker_list = broker_list @http_timeout = http_timeout @extra_http_header = extra_http_header @use_multistage_engine = use_multistage_engine @controller_config = controller_config end |
Instance Attribute Details
#broker_list ⇒ Object
Returns the value of attribute broker_list.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def broker_list @broker_list end |
#controller_config ⇒ Object
Returns the value of attribute controller_config.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def controller_config @controller_config end |
#extra_http_header ⇒ Object
Returns the value of attribute extra_http_header.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def extra_http_header @extra_http_header end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def http_timeout @http_timeout end |
#use_multistage_engine ⇒ Object
Returns the value of attribute use_multistage_engine.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def use_multistage_engine @use_multistage_engine end |