Module: Legion::Extensions::ElasticAppSearch::Helpers::Client
- Includes:
- Helpers::Lex
- Included in:
- Runners::Analytics, Runners::ClickThrough, Runners::Credentials, Runners::Curations, Runners::Documents, Runners::Engines, Runners::Schemas, Runners::Search, Runners::Synonyms
- Defined in:
- lib/legion/extensions/elastic_app_search/helpers/client.rb
Instance Method Summary collapse
Instance Method Details
#client(**opts) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/legion/extensions/elastic_app_search/helpers/client.rb', line 8 def client(**opts) Elastic::AppSearch::Client.new( host_identifier: find_setting('host', opts), api_key: find_setting('api_key', opts) ) end |