Class: DeleteResponse
- Defined in:
- lib/dto/posting/delete_response.rb
Overview
Class DeleteResponse represents server response on delete
Posting API request. Server response is sent to from_hash
method which creates object with attribute success
accessible via getter:
response = DeleteResponse.from_hash("success" => "true")
response.success # => true
Instance Attribute Summary collapse
-
#success ⇒ Object
Returns the value of attribute success.
Method Summary
Methods inherited from Struct
Instance Attribute Details
#success ⇒ Object
Returns the value of attribute success
8 9 10 |
# File 'lib/dto/posting/delete_response.rb', line 8 def success @success end |