Class: Tire::Model::Search::ClassMethodsProxy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from ClassMethods

#index, #multi_search, #search

Methods included from Tire::Model::Suggest::ClassMethods

#suggest

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

#import

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

#klassObject (readonly)

Returns the value of attribute klass.



233
234
235
# File 'lib/tire/model/search.rb', line 233

def klass
  @klass
end