Class: Elasticsearch::Autocomplete::Request
- Inherits:
-
Object
- Object
- Elasticsearch::Autocomplete::Request
- Defined in:
- lib/elasticsearch/autocomplete/request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#query ⇒ Object
Returns the value of attribute query.
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(index, query, types) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(index, query, types) ⇒ Request
Returns a new instance of Request.
19 20 21 22 23 |
# File 'lib/elasticsearch/autocomplete/request.rb', line 19 def initialize(index, query, types) self.query = query self.types = types self.index = index end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
17 18 19 |
# File 'lib/elasticsearch/autocomplete/request.rb', line 17 def index @index end |
#query ⇒ Object
Returns the value of attribute query.
17 18 19 |
# File 'lib/elasticsearch/autocomplete/request.rb', line 17 def query @query end |
#types ⇒ Object
Returns the value of attribute types.
17 18 19 |
# File 'lib/elasticsearch/autocomplete/request.rb', line 17 def types @types end |
Instance Method Details
#body ⇒ Object
25 26 27 |
# File 'lib/elasticsearch/autocomplete/request.rb', line 25 def body {} end |