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
56 57 58 |
# File 'lib/elasticsearch/model/client.rb', line 56 def client @client ||= self.class.client end |
#client=(client) ⇒ Object
Set the client for a specific model instance
67 68 69 |
# File 'lib/elasticsearch/model/client.rb', line 67 def client=(client) @client = client end |