Module: TurbaKit::Notification

Included in:
Client
Defined in:
lib/turba_kit/notification.rb

Instance Method Summary collapse

Instance Method Details

#create_service_notification(service_id, options = {}) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/turba_kit/notification.rb', line 12

def create_service_notification(service_id, options = {})
  post_request("/services/#{service_id}/notifications", {
    namespace: :notification,
    params: {
      notification: options
    }
  })
end

#delete_service_notification(service_id, notification_id, options = {}) ⇒ Object



21
22
23
# File 'lib/turba_kit/notification.rb', line 21

def delete_service_notification(service_id, notification_id, options = {})
  delete_request("/services/#{service_id}/notifications/#{notification_id}")
end

#update_service_notification(service_id, notification_id, options = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/turba_kit/notification.rb', line 3

def update_service_notification(service_id, notification_id, options = {})
  put_request("/services/#{service_id}/notifications/#{notification_id}", {
    namespace: :notification,
    params: {
      notification: options
    }
  })
end