Module: Elasticsearch::Model::Proxy::Base

Included in:
ClassMethodsProxy, InstanceMethodsProxy
Defined in:
lib/elasticsearch/model/proxy.rb

Overview

Common module for the proxy classes

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.

 108 109 110
# File 'lib/elasticsearch/model/proxy.rb', line 108 def target @target end

Class Method Details

.ruby2_keywordsObject

:nodoc:

 114 115
# File 'lib/elasticsearch/model/proxy.rb', line 114 def self.ruby2_keywords(*) # :nodoc: end

Instance Method Details

#initialize(target) ⇒ Object

 110 111 112
# File 'lib/elasticsearch/model/proxy.rb', line 110 def initialize(target) @target = target end

#inspectObject

 129 130 131
# File 'lib/elasticsearch/model/proxy.rb', line 129 def inspect "[PROXY] #{target.inspect}" end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Respond to methods from ‘@target`

Returns:

  • (Boolean)
 125 126 127
# File 'lib/elasticsearch/model/proxy.rb', line 125 def respond_to_missing?(method_name, include_private = false) target.respond_to?(method_name) || super end