module Elos::Configuration
Public Instance Methods
config(host: nil, env: nil, settings: {})
click to toggle source
# File lib/elos/configuration.rb, line 9 def config(host: nil, env: nil, settings: {}) host ||= 'localhost:9200' self.client = ::Elasticsearch::Client.new(host: host) self.env = env.to_s self.settings = settings end