Method: Figo#remove_notification

Defined in:
lib/notification/api_call.rb

#remove_notification(notification) ⇒ Object

Unregister notification.

Parameters:

  • notification (Notification, String)

    notification object which should be deleted or its ID



37
38
39
# File 'lib/notification/api_call.rb', line 37

def remove_notification(notification)
  query_api notification.is_a?(String) ? "/rest/notifications/#{notification}" : "/rest/notifications/#{notification.notification_id}", nil, "DELETE"
end