Class: Elasticsearch::Model::Proxy::InstanceMethodsProxy
- Inherits:
 - 
      Object
      
        
- Object
 - Elasticsearch::Model::Proxy::InstanceMethodsProxy
 
 
- Includes:
 - Client::InstanceMethods, Indexing::InstanceMethods, Naming::InstanceMethods, Base, Serializing::InstanceMethods
 
- Defined in:
 - lib/elasticsearch/model/proxy.rb
 
Overview
A proxy interfacing between Elasticsearch::Model instance methods and model instance methods
TODO: Inherit from BasicObject and make Pry’s ‘ls` command behave?
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
- #as_indexed_json(options = {}) ⇒ Object
 - 
  
    
      #as_json(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Need to redefine ‘as_json` because we’re not inheriting from ‘BasicObject`; see TODO note above.
 - #class ⇒ Object
 - #klass ⇒ Object
 
Methods included from Indexing::InstanceMethods
#delete_document, included, #index_document, #update_document, #update_document_attributes
Methods included from Naming::InstanceMethods
Methods included from Client::InstanceMethods
Methods included from Base
#initialize, #inspect, #respond_to_missing?, ruby2_keywords
Instance Method Details
#as_indexed_json(options = {}) ⇒ Object
      173 174 175  | 
    
      # File 'lib/elasticsearch/model/proxy.rb', line 173 def as_indexed_json(={}) target.respond_to?(:as_indexed_json) ? target.__send__(:as_indexed_json, ) : super end  | 
  
#as_json(options = {}) ⇒ Object
Need to redefine ‘as_json` because we’re not inheriting from ‘BasicObject`; see TODO note above.
      169 170 171  | 
    
      # File 'lib/elasticsearch/model/proxy.rb', line 169 def as_json(={}) target.as_json() end  | 
  
#class ⇒ Object
      162 163 164  | 
    
      # File 'lib/elasticsearch/model/proxy.rb', line 162 def class klass.__elasticsearch__ end  | 
  
#klass ⇒ Object
      158 159 160  | 
    
      # File 'lib/elasticsearch/model/proxy.rb', line 158 def klass target.class end  |