Method: Elasticsearch::Persistence::Repository::DSL::ClassMethods#client
- Defined in:
- lib/elasticsearch/persistence/repository/dsl.rb
#client(_client = nil) ⇒ Class
Get or set the class-level setting for the client used by the repository.
68 69 70 |
# File 'lib/elasticsearch/persistence/repository/dsl.rb', line 68 def client(_client = nil) @client ||= (_client || Elasticsearch::Client.new) end |