Class: Tire::Model::Search::ClassMethodsProxy
- Inherits:
-
Object
- Object
- Tire::Model::Search::ClassMethodsProxy
- Includes:
- Import::ClassMethods, Indexing::ClassMethods, Naming::ClassMethods, Percolate::ClassMethods, 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
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.
217 218 219 |
# File 'lib/tire/model/search.rb', line 217 def initialize(klass) @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
216 217 218 |
# File 'lib/tire/model/search.rb', line 216 def klass @klass end |