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

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

Instance Method Summary collapse

Methods included from ClassMethods

#index, #search

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.



217
218
219
# File 'lib/tire/model/search.rb', line 217

def initialize(klass)
  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



216
217
218
# File 'lib/tire/model/search.rb', line 216

def klass
  @klass
end