aboutsummaryrefslogtreecommitdiff
blob: 88de0c8f99acc636bf60c1e5f3837a06e4c12eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class ElasticsearchClient

  def self.default
    @default ||= Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'localhost:9200'
  end

  private

  def initialize(*)
    raise "Should not be initialiazed"
  end

end