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.
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.
233 234 235 |
# File 'lib/tire/model/search.rb', line 233 def initialize(instance) @instance = instance end |
Instance Attribute Details
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
232 233 234 |
# File 'lib/tire/model/search.rb', line 232 def instance @instance end |