Class: Tire::Model::Search::ClassMethodsProxy
- Inherits:
-
Object
- Object
- Tire::Model::Search::ClassMethodsProxy
- Includes:
- Import::ClassMethods, Indexing::ClassMethods, Naming::ClassMethods, Percolate::ClassMethods, ClassMethods, Tire::Model::Suggest::ClassMethods
- Defined in:
- lib/tire/model/search.rb
Overview
An object containing Tire's model class methods, accessed as Article.tire
.
Constant Summary collapse
- INTERFACE =
public_instance_methods.map(&:to_sym) - Object.public_instance_methods.map(&:to_sym)
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ ClassMethodsProxy
constructor
A new instance of ClassMethodsProxy.
Methods included from ClassMethods
#index, #multi_search, #search
Methods included from Tire::Model::Suggest::ClassMethods
Methods included from Percolate::ClassMethods
#on_percolate, #percolate!, #percolator
Methods included from Indexing::ClassMethods
#create_elasticsearch_index, #indexes, #mapping, #mapping_options, #mapping_to_hash, #settings
Methods included from Import::ClassMethods
Methods included from Naming::ClassMethods
#document_type, #index_name, #index_prefix
Constructor Details
#initialize(klass) ⇒ ClassMethodsProxy
Returns a new instance of ClassMethodsProxy.
234 235 236 |
# File 'lib/tire/model/search.rb', line 234 def initialize(klass) @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
233 234 235 |
# File 'lib/tire/model/search.rb', line 233 def klass @klass end |