Module: Elasticsearch::Model::Client::ClassMethods
- Included in:
- Proxy::ClassMethodsProxy
- Defined in:
- lib/elasticsearch/model/client.rb
Instance Method Summary collapse
-
#client(client = nil) ⇒ Object
Get the client for a specific model class.
-
#client=(client) ⇒ Object
Set the client for a specific model class.
Instance Method Details
#client(client = nil) ⇒ Object
Get the client for a specific model class
31 32 33 |
# File 'lib/elasticsearch/model/client.rb', line 31 def client client=nil @client ||= Elasticsearch::Model.client end |
#client=(client) ⇒ Object
Set the client for a specific model class
42 43 44 |
# File 'lib/elasticsearch/model/client.rb', line 42 def client=(client) @client = client end |