module UserEngage::Operation::Destroy
Public Instance Methods
destroy()
click to toggle source
# File lib/user_engage/operation/destroy.rb, line 8 def destroy destroy_resource end
Private Instance Methods
check_for_success!(response)
click to toggle source
# File lib/user_engage/operation/destroy.rb, line 23 def check_for_success!(response) return true if response.status == 204 raise( UserEngage::NotExistingResourceException, "No resource with ID: #{id} found!" ) end
destroy_resource()
click to toggle source
Private methods ##
# File lib/user_engage/operation/destroy.rb, line 17 def destroy_resource path = "/#{self.class.resource_name}/#{id}/" response = UserEngage.client.delete(path) check_for_success!(response) end