class Elasticity::Config

Attributes

namespace[W]
pretty_json[W]
settings[W]

Public Instance Methods

client() click to toggle source
# File lib/elasticity/config.rb, line 7
def client
  return @client if defined?(@client)
  self.client = Elasticsearch::Client.new
  @client
end
client=(client) click to toggle source
# File lib/elasticity/config.rb, line 3
def client=(client)
  @client = Elasticity::InstrumentedClient.new(client)
end
namespace() click to toggle source
# File lib/elasticity/config.rb, line 20
def namespace
  @namespace
end
pretty_json() click to toggle source
# File lib/elasticity/config.rb, line 24
def pretty_json
  @pretty_json || false
end
settings() click to toggle source
# File lib/elasticity/config.rb, line 15
def settings
  return @settings if defined?(@settings)
  @settings = {}
end