Class: Rooftop::AlgoliaSearch::Configuration
- Inherits:
-
Object
- Object
- Rooftop::AlgoliaSearch::Configuration
- Defined in:
- lib/rooftop/algolia_search.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#index_api_key ⇒ Object
Returns the value of attribute index_api_key.
-
#index_connection ⇒ Object
readonly
Returns the value of attribute index_connection.
-
#search_api_key ⇒ Object
Returns the value of attribute search_api_key.
-
#search_connection ⇒ Object
readonly
Returns the value of attribute search_connection.
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
Instance Attribute Details
#application_id ⇒ Object
Returns the value of attribute application_id.
28 29 30 |
# File 'lib/rooftop/algolia_search.rb', line 28 def application_id @application_id end |
#index_api_key ⇒ Object
Returns the value of attribute index_api_key.
28 29 30 |
# File 'lib/rooftop/algolia_search.rb', line 28 def index_api_key @index_api_key end |
#index_connection ⇒ Object (readonly)
Returns the value of attribute index_connection.
33 34 35 |
# File 'lib/rooftop/algolia_search.rb', line 33 def index_connection @index_connection end |
#search_api_key ⇒ Object
Returns the value of attribute search_api_key.
28 29 30 |
# File 'lib/rooftop/algolia_search.rb', line 28 def search_api_key @search_api_key end |
#search_connection ⇒ Object (readonly)
Returns the value of attribute search_connection.
33 34 35 |
# File 'lib/rooftop/algolia_search.rb', line 33 def search_connection @search_connection end |
#settings ⇒ Object
Returns the value of attribute settings.
28 29 30 |
# File 'lib/rooftop/algolia_search.rb', line 28 def settings @settings end |
Instance Method Details
#configure_connection ⇒ Object
35 36 37 38 |
# File 'lib/rooftop/algolia_search.rb', line 35 def configure_connection ::Algolia.init( application_id: @application_id, api_key: @index_api_key) end |