Method: Figo#add_notification

Defined in:
lib/notification/api_call.rb

#add_notification(notification) ⇒ Notification

Register a new notification.

Parameters:

  • notification (Notification)

    notification to be crated. It should not have a notification_id set.

Returns:



22
23
24
# File 'lib/notification/api_call.rb', line 22

def add_notification(notification)
  query_api_object Notification, "/rest/notifications", notification.dump(), "POST"
end