Module: Elasticsearch::Model::Client::ClassMethods
- 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
17 18 19 |
# File 'lib/elasticsearch/model/client.rb', line 17 def client client=nil @client ||= Elasticsearch::Model.client end |
#client=(client) ⇒ Object
Set the client for a specific model class
28 29 30 |
# File 'lib/elasticsearch/model/client.rb', line 28 def client=(client) @client = client end |