Class: AfElastic::Configuration
- Inherits:
-
Object
- Object
- AfElastic::Configuration
- Defined in:
- lib/af_elastic.rb
Instance Attribute Summary collapse
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#es ⇒ Object
Returns the value of attribute es.
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 |
# File 'lib/af_elastic.rb', line 21 def initialize @es = Elasticsearch::Client.new @index = 'gem-test' @capacity = 1000 end |
Instance Attribute Details
#capacity ⇒ Object
Returns the value of attribute capacity.
19 20 21 |
# File 'lib/af_elastic.rb', line 19 def capacity @capacity end |
#es ⇒ Object
Returns the value of attribute es.
17 18 19 |
# File 'lib/af_elastic.rb', line 17 def es @es end |
#index ⇒ Object
Returns the value of attribute index.
18 19 20 |
# File 'lib/af_elastic.rb', line 18 def index @index end |