Class: Elastic::Configuration
- Inherits:
-
Object
- Object
- Elastic::Configuration
- Defined in:
- lib/elastic/configuration.rb
Instance Attribute Summary collapse
-
#clusters ⇒ Object
Returns the value of attribute clusters.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/elastic/configuration.rb', line 5 def initialize @namespace = "elastic" @clusters = { default: ENV['ELASTICSEARCH_URL'] } end |
Instance Attribute Details
#clusters ⇒ Object
Returns the value of attribute clusters.
3 4 5 |
# File 'lib/elastic/configuration.rb', line 3 def clusters @clusters end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/elastic/configuration.rb', line 3 def logger @logger end |
#namespace ⇒ Object
Returns the value of attribute namespace.
3 4 5 |
# File 'lib/elastic/configuration.rb', line 3 def namespace @namespace end |