Module: Elasticsearch::Persistence::Repository::Client
- Included in:
- Class
- Defined in:
- lib/elasticsearch/persistence/client.rb
Overview
Wraps the Elasticsearch Ruby [client](github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch#usage)
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
29 30 31 |
# File 'lib/elasticsearch/persistence/client.rb', line 29 def client client=nil @client = client || @client || Elasticsearch::Persistence.client end |
#client=(client) ⇒ Object
Set the default client for this repository
43 44 45 46 |
# File 'lib/elasticsearch/persistence/client.rb', line 43 def client=(client) @client = client @client end |