Class: SunspotConnector::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
# File 'lib/sunspot_connector/config.rb', line 8

def initialize
  @headers = {}
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



7
8
9
# File 'lib/sunspot_connector/config.rb', line 7

def adapter
  @adapter
end

#headersObject

Returns the value of attribute headers.



7
8
9
# File 'lib/sunspot_connector/config.rb', line 7

def headers
  @headers
end