Class: Tire::Model::Search::InstanceMethodsProxy

Inherits:
Object
  • Object
show all
Includes:
Naming::InstanceMethods, Percolate::InstanceMethods, InstanceMethods
Defined in:
lib/tire/model/search.rb

Overview

An object containing _Tire’s_ model instance 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 InstanceMethods

#index, #matches, #matches=, #to_indexed_json, #update_index

Methods included from Percolate::InstanceMethods

#percolate, #percolate=, #percolator

Methods included from Naming::InstanceMethods

#document_type, #index_name

Constructor Details

#initialize(instance) ⇒ InstanceMethodsProxy

Returns a new instance of InstanceMethodsProxy.



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

def initialize(instance)
  @instance = instance
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



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

def instance
  @instance
end