Class: Tire::Model::Search::InstanceMethodsProxy
- Inherits:
-
Object
- Object
- Tire::Model::Search::InstanceMethodsProxy
- 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 ⇒ Object
readonly
Returns the value of attribute instance.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(instance) ⇒ InstanceMethodsProxy
constructor
A new instance of InstanceMethodsProxy.
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
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
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
249 250 251 |
# File 'lib/tire/model/search.rb', line 249 def instance @instance end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
249 250 251 |
# File 'lib/tire/model/search.rb', line 249 def response @response end |