Module: Elasticity

Defined in:
lib/elasticity.rb,
lib/elasticity/bulk.rb,
lib/elasticity/config.rb,
lib/elasticity/search.rb,
lib/elasticity/version.rb,
lib/elasticity/railtie.rb,
lib/elasticity/document.rb,
lib/elasticity/strategies.rb,
lib/elasticity/multi_search.rb,
lib/elasticity/log_subscriber.rb,
lib/elasticity/instrumented_client.rb,
lib/elasticity/strategies/alias_index.rb,
lib/elasticity/strategies/single_index.rb

Defined Under Namespace

Modules: Search, Strategies Classes: Bulk, Config, Document, InstrumentedClient, LogSubscriber, MultiSearch, Railtie

Constant Summary collapse

VERSION =
"0.3.2"
GRAY =
"\e[90m"

Class Method Summary collapse

Class Method Details

.configObject


25
26
27
28
# File 'lib/elasticity.rb', line 25

def self.config
  return @config if defined?(@config)
  @config = Config.new
end

.configure {|@config| ... } ⇒ Object

Yields:


20
21
22
23
# File 'lib/elasticity.rb', line 20

def self.configure
  @config = Config.new
  yield(@config)
end