Class: AzureSearch::IndexDeleteOperation
- Inherits:
-
IndexBatchOperation
- Object
- IndexBatchOperation
- AzureSearch::IndexDeleteOperation
- Defined in:
- lib/azure_search/index_batch_operation.rb
Overview
Represents a document deletion request.
Instance Method Summary collapse
-
#initialize(key_name, key_value) ⇒ IndexDeleteOperation
constructor
A new instance of IndexDeleteOperation.
-
#to_hash ⇒ Hash
Returns the delete operation as a Hash.
Methods inherited from IndexBatchOperation
Constructor Details
#initialize(key_name, key_value) ⇒ IndexDeleteOperation
Returns a new instance of IndexDeleteOperation.
43 44 45 46 |
# File 'lib/azure_search/index_batch_operation.rb', line 43 def initialize(key_name, key_value) @key_name = key_name @key_value = key_value end |
Instance Method Details
#to_hash ⇒ Hash
Returns the delete operation as a Hash.
51 52 53 54 55 56 |
# File 'lib/azure_search/index_batch_operation.rb', line 51 def to_hash { @key_name => @key_value, "@search_action" => "delete" } end |