Module: Elasticsearch::Persistence::Client::ClassMethods
- Included in:
- Elasticsearch::Persistence, Repository::Class
- Defined in:
- lib/elasticsearch/persistence/client.rb
Instance Method Summary collapse
-
#client(client = nil) ⇒ Object
Get or set the default client for this repository.
-
#client=(client) ⇒ Object
Set the default client for this repository.
Instance Method Details
#client(client = nil) ⇒ Object
Get or set the default client for this repository
30 31 32 |
# File 'lib/elasticsearch/persistence/client.rb', line 30 def client client=nil @client = client || @client || Elasticsearch::Persistence.client end |
#client=(client) ⇒ Object
Set the default client for this repository
44 45 46 |
# File 'lib/elasticsearch/persistence/client.rb', line 44 def client=(client) @client = client end |