Class: Rooftop::AlgoliaSearch::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rooftop/algolia_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#application_idObject

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_keyObject

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_connectionObject (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_keyObject

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_connectionObject (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

#settingsObject

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_connectionObject



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