Class: Elasticsearch::Resources::Configuration::Index
- Includes:
- Nameable
- Defined in:
- lib/elasticsearch/resources/configuration/index.rb
Instance Method Summary collapse
Methods included from Nameable
Instance Method Details
#type(key) ⇒ Object
11 12 13 14 15 |
# File 'lib/elasticsearch/resources/configuration/index.rb', line 11 def type(key) types[key.to_sym].tap do |t| yield(t) if block_given? && !t.nil? end end |
#types ⇒ Object
7 8 9 |
# File 'lib/elasticsearch/resources/configuration/index.rb', line 7 def types @types ||= default_types end |