Class: Tagliani::Configuration::Elasticsearch

Inherits:
Struct
  • Object
show all
Defined in:
lib/tagliani/configuration/elasticsearch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeElasticsearch

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

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



3
4
5
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3

def index
  @index
end

#logObject

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



3
4
5
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3

def log
  @log
end

#refreshObject

Returns the value of attribute refresh

Returns:

  • (Object)

    the current value of refresh



3
4
5
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3

def refresh
  @refresh
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



3
4
5
# File 'lib/tagliani/configuration/elasticsearch.rb', line 3

def url
  @url
end