Class: Elastictastic::Index
- Inherits:
-
Object
- Object
- Elastictastic::Index
- Defined in:
- lib/elastictastic/index.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ Index
constructor
A new instance of Index.
- #to_s ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/elastictastic/index.rb', line 9 def name @name end |
Class Method Details
.default ⇒ Object
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_s ⇒ Object
15 16 17 |
# File 'lib/elastictastic/index.rb', line 15 def to_s @name end |