module Elasticsearch::Model::Proxy::Base
Common module for the proxy classes
Attributes
target[R]
Public Class Methods
new(target)
click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 114 def initialize(target) @target = target end
Public Instance Methods
inspect()
click to toggle source
# File lib/elasticsearch/model/proxy.rb, line 130 def inspect "[PROXY] #{target.inspect}" end
method_missing(method_name, *arguments, &block)
click to toggle source
Delegate methods to `@target`
Calls superclass method
# File lib/elasticsearch/model/proxy.rb, line 120 def method_missing(method_name, *arguments, &block) target.respond_to?(method_name) ? target.__send__(method_name, *arguments, &block) : super end
respond_to?(method_name, include_private = false)
click to toggle source
Respond to methods from `@target`
Calls superclass method
# File lib/elasticsearch/model/proxy.rb, line 126 def respond_to?(method_name, include_private = false) target.respond_to?(method_name) || super end