lib/plivo/base/resource_interface.rb in plivo-4.32.0 vs lib/plivo/base/resource_interface.rb in plivo-4.33.0

- old
+ new

@@ -57,9 +57,17 @@ @_client.send_request(@_resource_uri, 'POST', params, 10, use_multipart_conn, is_voice_request: @_is_voice_request), @_identifier_string ) end + def perform_delete(identifier, params = nil) + valid_param?(:identifier, identifier, [String, Symbol], true) + Response.new( + @_client.send_request(@_resource_uri + identifier.to_s + '/', 'DELETE', params, nil, false, is_voice_request: @_is_voice_request), + @_identifier_string + ) + end + def perform_submit(identifier, params = nil) valid_param?(:identifier, identifier, [String, Symbol], true) response_json = @_client.send_request(@_resource_uri + identifier.to_s + '/Submit/', 'POST', params, nil, false, is_voice_request: @_is_voice_request) @_resource_type.new(@_client, resource_json: response_json) end