Module: AlgoliaSearch::ClassMethods::AdditionalMethods

Defined in:
lib/algoliasearch-rails.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



663
664
665
666
667
668
# File 'lib/algoliasearch-rails.rb', line 663

def self.extended(base)
  class <<base
    alias_method :raw_answer, :algolia_raw_answer unless method_defined? :raw_answer
    alias_method :facets, :algolia_facets unless method_defined? :facets
  end
end

Instance Method Details

#algolia_facetsObject



674
675
676
# File 'lib/algoliasearch-rails.rb', line 674

def algolia_facets
  @algolia_json['facets']
end

#algolia_raw_answerObject



670
671
672
# File 'lib/algoliasearch-rails.rb', line 670

def algolia_raw_answer
  @algolia_json
end