Class: DeleteResponse

Inherits:
Struct
  • Object
show all
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

Method Summary

Methods inherited from Struct

from_array, from_hash

Instance Attribute Details

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



8
9
10
# File 'lib/dto/posting/delete_response.rb', line 8

def success
  @success
end