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.



250
251
252
253
# File 'lib/tire/model/search.rb', line 250

def initialize(instance)
  @instance = instance
  @response = {}
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



249
250
251
# File 'lib/tire/model/search.rb', line 249

def instance
  @instance
end

#responseObject (readonly)

Returns the value of attribute response.



249
250
251
# File 'lib/tire/model/search.rb', line 249

def response
  @response
end