Sha256: cf925a3a7fefd47e245e34ea7ce462949ca5205288f41340ababd681fb483a33
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Elasticity class Config def client=(client) @client = Elasticity::InstrumentedClient.new(client) end def client return @client if defined?(@client) self.client = Elasticsearch::Client.new @client end attr_writer :settings, :namespace, :pretty_json def settings return @settings if defined?(@settings) @settings = {} end def namespace @namespace end def pretty_json @pretty_json || false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
es-elasticity-1.0.0 | lib/elasticity/config.rb |
es-elasticity-1.0.0.jhumphreys | lib/elasticity/config.rb |