class Elasticsearch::Resources::Configuration::Index

Public Instance Methods

type(key) { |t| ... } click to toggle source
# 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() click to toggle source
# File lib/elasticsearch/resources/configuration/index.rb, line 7
def types
  @types ||= default_types
end

Protected Instance Methods

default_types() click to toggle source
# File lib/elasticsearch/resources/configuration/index.rb, line 19
def default_types
  {}
end