Method: Pushpad::Notification#cancel
- Defined in:
- lib/pushpad/notification.rb
#cancel ⇒ Object
95 96 97 98 99 100 101 |
# File 'lib/pushpad/notification.rb', line 95 def cancel response = Request.delete("https://pushpad.xyz/api/v1/notifications/#{id}/cancel") unless response.code == "204" raise CancelError, "Response #{response.code} #{response.message}: #{response.body}" end end |