Module: Elasticsearch::Model::Client::InstanceMethods
- Included in:
- Proxy::InstanceMethodsProxy
- Defined in:
- lib/elasticsearch/model/client.rb
Instance Method Summary collapse
-
#client ⇒ Object
Get or set the client for a specific model instance.
-
#client=(client) ⇒ Object
Set the client for a specific model instance.
Instance Method Details
#client ⇒ Object
Get or set the client for a specific model instance
60 61 62 |
# File 'lib/elasticsearch/model/client.rb', line 60 def client @client ||= self.class.client end |
#client=(client) ⇒ Object
Set the client for a specific model instance
71 72 73 |
# File 'lib/elasticsearch/model/client.rb', line 71 def client=(client) @client = client end |