class Elasticity::Bulk::Alias
Public Class Methods
new(client, update_alias, delete_indexes)
click to toggle source
Calls superclass method
Elasticity::Bulk::new
# File lib/elasticity/bulk.rb, line 44 def initialize(client, update_alias, delete_indexes) super(client) @update_alias = update_alias @delete_indexes = delete_indexes end
Public Instance Methods
delete(type, id)
click to toggle source
Calls superclass method
Elasticity::Bulk#delete
# File lib/elasticity/bulk.rb, line 58 def delete(type, id) @delete_indexes.each do |index| super(index, type, id) end end
index(type, id, attributes)
click to toggle source
Calls superclass method
Elasticity::Bulk#index
# File lib/elasticity/bulk.rb, line 50 def index(type, id, attributes) super(@update_alias, type, id, attributes) end
update(type, id, attributes)
click to toggle source
Calls superclass method
Elasticity::Bulk#update
# File lib/elasticity/bulk.rb, line 54 def update(type, id, attributes) super(@update_alias, type, id, attributes) end