Class: Leda::Stores::Elasticsearch
- Inherits:
-
Object
- Object
- Leda::Stores::Elasticsearch
- Includes:
- Leda::Store
- Defined in:
- lib/leda/stores/elasticsearch.rb
Defined Under Namespace
Classes: Runner
Instance Attribute Summary collapse
-
#indices ⇒ Object
readonly
Returns the value of attribute indices.
Attributes included from Leda::Store
Instance Method Summary collapse
- #dump(directory) ⇒ Object
-
#initialize ⇒ Elasticsearch
constructor
A new instance of Elasticsearch.
- #restore_from(directory) ⇒ Object
Methods included from Leda::Store
default_name, find, included, #name, register_store, registered_stores
Constructor Details
#initialize ⇒ Elasticsearch
12 13 14 15 16 |
# File 'lib/leda/stores/elasticsearch.rb', line 12 def initialize(*) super @indices = [:indices] || [:indexes] end |
Instance Attribute Details
#indices ⇒ Object (readonly)
Returns the value of attribute indices.
10 11 12 |
# File 'lib/leda/stores/elasticsearch.rb', line 10 def indices @indices end |