Class: Traject::SolrPool::Connection::Options
- Inherits:
-
Struct
- Object
- Struct
- Traject::SolrPool::Connection::Options
- Defined in:
- lib/traject/solr_pool/connection.rb
Overview
Keyword bundle so initialize stays under the 5-param limit.
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth
12 13 14 |
# File 'lib/traject/solr_pool/connection.rb', line 12 def auth @auth end |
#headers ⇒ Object
Returns the value of attribute headers
12 13 14 |
# File 'lib/traject/solr_pool/connection.rb', line 12 def headers @headers end |
#timeout ⇒ Object
Returns the value of attribute timeout
12 13 14 |
# File 'lib/traject/solr_pool/connection.rb', line 12 def timeout @timeout end |
Instance Method Details
#to_pool_opts ⇒ Object
13 14 15 16 17 18 |
# File 'lib/traject/solr_pool/connection.rb', line 13 def to_pool_opts opts = { headers: headers } opts[:auth] = auth if auth opts[:timeout] = timeout if timeout opts end |