Class: LockstepSdk::BulkDeleteRequestModel
- Inherits:
-
Object
- Object
- LockstepSdk::BulkDeleteRequestModel
- Defined in:
- lib/lockstep_sdk/models/bulk_delete_request_model.rb
Overview
Represents a bulk delete request in the API
Instance Attribute Summary collapse
-
#ids_to_delete ⇒ Uuid
Represents the IDs to be deleted.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ BulkDeleteRequestModel
constructor
Initialize the BulkDeleteRequestModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ BulkDeleteRequestModel
Initialize the BulkDeleteRequestModel using the provided prototype
25 26 27 |
# File 'lib/lockstep_sdk/models/bulk_delete_request_model.rb', line 25 def initialize(params = {}) @ids_to_delete = params.dig(:ids_to_delete) end |
Instance Attribute Details
#ids_to_delete ⇒ Uuid
Returns Represents the IDs to be deleted.
31 32 33 |
# File 'lib/lockstep_sdk/models/bulk_delete_request_model.rb', line 31 def ids_to_delete @ids_to_delete end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
35 36 37 38 39 |
# File 'lib/lockstep_sdk/models/bulk_delete_request_model.rb', line 35 def as_json(={}) { 'idsToDelete' => @ids_to_delete, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
43 44 45 |
# File 'lib/lockstep_sdk/models/bulk_delete_request_model.rb', line 43 def to_json(*) "[#{as_json(*).to_json(*)}]" end |