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

Instance Method Summary collapse

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



112
113
114
# File 'lib/elasticsearch/model/proxy.rb', line 112

def target
  @target
end

Instance Method Details

#initialize(target) ⇒ Object



114
115
116
# File 'lib/elasticsearch/model/proxy.rb', line 114

def initialize(target)
  @target = target
end

#inspectObject



133
134
135
# File 'lib/elasticsearch/model/proxy.rb', line 133

def inspect
  "[PROXY] #{target.inspect}"
end

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

Respond to methods from ‘@target`

Returns:

  • (Boolean)


129
130
131
# File 'lib/elasticsearch/model/proxy.rb', line 129

def respond_to_missing?(method_name, include_private = false)
  target.respond_to?(method_name) || super
end

#ruby2_keywordsObject

:nodoc:



118
119
# File 'lib/elasticsearch/model/proxy.rb', line 118

def ruby2_keywords(*) # :nodoc:
end