Module: Rooftop::AlgoliaSearch

Defined in:
lib/rooftop/algolia_search.rb,
lib/rooftop/algolia_search/engine.rb,
lib/rooftop/algolia_search/version.rb,
lib/rooftop/algolia_search/post_indexing.rb,
lib/rooftop/algolia_search/post_searching.rb,
app/helpers/rooftop/algolia_search/facet_helper.rb

Defined Under Namespace

Modules: FacetHelper, PostIndexing, PostSearching Classes: Configuration, Engine, Error

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



12
13
14
# File 'lib/rooftop/algolia_search.rb', line 12

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
16
17
# File 'lib/rooftop/algolia_search.rb', line 13

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
  self.configuration.configure_connection
end

.included(base) ⇒ Object



20
21
22
23
24
25
# File 'lib/rooftop/algolia_search.rb', line 20

def self.included(base)
  @included_classes ||= []
  @included_classes << base unless @included_classes.include?(base)
  base.include PostIndexing
  base.include PostSearching
end

.included_classesObject



45
46
47
# File 'lib/rooftop/algolia_search.rb', line 45

def self.included_classes
  @included_classes
end