Class: Elasticity::Bulk::Index
- Inherits:
-
Elasticity::Bulk
- Object
- Elasticity::Bulk
- Elasticity::Bulk::Index
- Defined in:
- lib/elasticity/bulk.rb
Instance Method Summary collapse
- #delete(type, id) ⇒ Object
- #index(type, id, attributes) ⇒ Object
-
#initialize(client, index_name) ⇒ Index
constructor
A new instance of Index.
Methods inherited from Elasticity::Bulk
Constructor Details
#initialize(client, index_name) ⇒ Index
Returns a new instance of Index.
21 22 23 24 |
# File 'lib/elasticity/bulk.rb', line 21 def initialize(client, index_name) super(client) @index_name = index_name end |
Instance Method Details
#delete(type, id) ⇒ Object
30 31 32 |
# File 'lib/elasticity/bulk.rb', line 30 def delete(type, id) super(@index_name, type, id) end |
#index(type, id, attributes) ⇒ Object
26 27 28 |
# File 'lib/elasticity/bulk.rb', line 26 def index(type, id, attributes) super(@index_name, type, id, attributes) end |