Sha256: e1e62254d3cb60cae174dc6b6c537c29b592254f1a54bee4d3c84dd6309e47fe

Contents?: true

Size: 507 Bytes

Versions: 52

Compression:

Stored size: 507 Bytes

Contents

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

52 entries across 52 versions & 1 rubygems

Version Path
es-elasticity-1.2.1 lib/elasticity/config.rb
es-elasticity-1.1.0 lib/elasticity/config.rb
es-elasticity-1.0.1 lib/elasticity/config.rb
es-elasticity-0.14.1 lib/elasticity/config.rb
es-elasticity-0.14.0 lib/elasticity/config.rb
es-elasticity-0.14.0.jhumphreys lib/elasticity/config.rb
es-elasticity-0.13.5 lib/elasticity/config.rb
es-elasticity-0.13.5.dblackmon.1 lib/elasticity/config.rb
es-elasticity-0.13.4 lib/elasticity/config.rb
es-elasticity-0.13.4.zpesic lib/elasticity/config.rb
es-elasticity-0.13.4.dblackmon.1 lib/elasticity/config.rb
es-elasticity-0.13.4.dblackmon.0 lib/elasticity/config.rb
es-elasticity-0.13.4.dblackmon lib/elasticity/config.rb
es-elasticity-0.13.3 lib/elasticity/config.rb
es-elasticity-0.13.3.pre1 lib/elasticity/config.rb
es-elasticity-0.12.0 lib/elasticity/config.rb
es-elasticity-0.11.5 lib/elasticity/config.rb
es-elasticity-0.11.1 lib/elasticity/config.rb
es-elasticity-0.9.0 lib/elasticity/config.rb
es-elasticity-0.8.4 lib/elasticity/config.rb