Class: Elasticsearch::Resources::Configuration::Index

Inherits:
Settings
  • Object
show all
Includes:
Nameable
Defined in:
lib/elasticsearch/resources/configuration/index.rb

Instance Method Summary collapse

Methods included from Nameable

included

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

#typesObject



7
8
9
# File 'lib/elasticsearch/resources/configuration/index.rb', line 7

def types
  @types ||= default_types
end