Class: SunspotConnector::Config
- Inherits:
-
Object
- Object
- SunspotConnector::Config
- Defined in:
- lib/sunspot_connector/config.rb
Overview
Config lets you add additional headers to solr requests and change the Faraday adapter RSolr is using
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 |
# File 'lib/sunspot_connector/config.rb', line 8 def initialize @headers = {} end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
7 8 9 |
# File 'lib/sunspot_connector/config.rb', line 7 def adapter @adapter end |
#headers ⇒ Object
Returns the value of attribute headers.
7 8 9 |
# File 'lib/sunspot_connector/config.rb', line 7 def headers @headers end |