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
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
-
.ruby2_keywords ⇒ Object
:nodoc:.
Instance Method Summary collapse
- #initialize(target) ⇒ Object
- #inspect ⇒ Object
-
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Respond to methods from ‘@target`.
Instance Attribute Details
#target ⇒ Object (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_keywords ⇒ Object
: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 |
#inspect ⇒ Object
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`
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 |