class Elasticsearch::Model::Proxy::InstanceMethodsProxy
A proxy interfacing between Elasticsearch::Model
instance methods and model instance methods
TODO: Inherit from BasicObject and make Pry's `ls` command behave?
Public Instance Methods
as_indexed_json(options={})
click to toggle source
Calls superclass method
Elasticsearch::Model::Serializing::InstanceMethods#as_indexed_json
# File lib/elasticsearch/model/proxy.rb, line 174 def as_indexed_json(options={}) target.respond_to?(:as_indexed_json) ? target.__send__(:as_indexed_json, options) : super end
as_json(options={})
click to toggle source
Need to redefine `as_json` because we're not inheriting from `BasicObject`; see TODO note above.
# File lib/elasticsearch/model/proxy.rb, line 170 def as_json(options={}) target.as_json(options) end
class()
click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 163 def class klass.__elasticsearch__ end
klass()
click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 159 def klass target.class end