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_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 120
def as_json(options={})
  target.as_json(options)
end
class() click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 113
def class
  klass.__elasticsearch__
end
klass() click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 109
def klass
  target.class
end