Class: Elastictastic::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/elastictastic/index.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Index

Returns a new instance of Index.


11
12
13
# File 'lib/elastictastic/index.rb', line 11

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


9
10
11
# File 'lib/elastictastic/index.rb', line 9

def name
  @name
end

Class Method Details

.defaultObject


4
5
6
# File 'lib/elastictastic/index.rb', line 4

def default
  new(Elastictastic.config.default_index)
end

Instance Method Details

#==(other) ⇒ Object


19
20
21
# File 'lib/elastictastic/index.rb', line 19

def ==(other)
  name == other.name
end

#to_sObject


15
16
17
# File 'lib/elastictastic/index.rb', line 15

def to_s
  @name
end