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.
-
#flask ⇒ Object
Returns the value of attribute flask.
-
#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.
26 27 28 29 30 |
# File 'lib/af_elastic.rb', line 26 def initialize @flask = 'http://54.69.74.245/myapi' @index = 'gem-test' @capacity = 1000 end |
Instance Attribute Details
#capacity ⇒ Object
Returns the value of attribute capacity.
24 25 26 |
# File 'lib/af_elastic.rb', line 24 def capacity @capacity end |
#flask ⇒ Object
Returns the value of attribute flask.
22 23 24 |
# File 'lib/af_elastic.rb', line 22 def flask @flask end |
#index ⇒ Object
Returns the value of attribute index.
23 24 25 |
# File 'lib/af_elastic.rb', line 23 def index @index end |