module Legion::Extensions::ElasticAppSearch::Helpers::Client

Public Instance Methods

client(**opts) click to toggle source
# 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