Module: ElasticSearch::ClientProvider
- Included in:
- Node::Embedded, Node::External, Node::Remote
- Defined in:
- lib/elasticsearch-node/client_provider.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/elasticsearch-node/client_provider.rb', line 3 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(opts = {}, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/elasticsearch-node/client_provider.rb', line 11 def initialize(opts = {}, &block) if block mod = Module.new(&block) extend mod elsif opts[:client_module] extend opts[:client_module] elsif self.class.default_client_module extend self.class.default_client_module end end |