Class: LockstepSdk::DeleteResult
- Inherits:
-
Object
- Object
- LockstepSdk::DeleteResult
- Defined in:
- lib/lockstep_sdk/models/delete_result.rb
Overview
Information about result of delete operations
Instance Attribute Summary collapse
-
#messages ⇒ String
If the API call produced messages, this element will contain a list of user-visible text strings that contain information about what work occurred in the API.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ DeleteResult
constructor
Initialize the DeleteResult using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ DeleteResult
Initialize the DeleteResult using the provided prototype
25 26 27 |
# File 'lib/lockstep_sdk/models/delete_result.rb', line 25 def initialize(params = {}) @messages = params.dig(:messages) end |
Instance Attribute Details
#messages ⇒ String
Returns If the API call produced messages, this element will contain a list of user-visible text strings that contain information about what work occurred in the API.
31 32 33 |
# File 'lib/lockstep_sdk/models/delete_result.rb', line 31 def @messages 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/delete_result.rb', line 35 def as_json(={}) { 'messages' => @messages, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
43 44 45 |
# File 'lib/lockstep_sdk/models/delete_result.rb', line 43 def to_json(*) "[#{as_json(*).to_json(*)}]" end |