Class: Tagliani::Configuration::Elasticsearch
- Inherits:
-
Struct
- Object
- Struct
- Tagliani::Configuration::Elasticsearch
- Defined in:
- lib/tagliani/configuration/elasticsearch.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#log ⇒ Object
Returns the value of attribute log.
-
#refresh ⇒ Object
Returns the value of attribute refresh.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Elasticsearch
constructor
A new instance of Elasticsearch.
Constructor Details
#initialize ⇒ Elasticsearch
Returns a new instance of Elasticsearch.
4 5 6 7 8 9 |
# File 'lib/tagliani/configuration/elasticsearch.rb', line 4 def initialize self.url = "http://localhost:9200" self.index = "tagliani" self.refresh = false self.log = false end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
3 4 5 |
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3 def index @index end |
#log ⇒ Object
Returns the value of attribute log
3 4 5 |
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3 def log @log end |
#refresh ⇒ Object
Returns the value of attribute refresh
3 4 5 |
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3 def refresh @refresh end |
#url ⇒ Object
Returns the value of attribute url
3 4 5 |
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3 def url @url end |