Module: TurbaKit::Notification
- Included in:
- Client
- Defined in:
- lib/turba_kit/notification.rb
Instance Method Summary collapse
- #create_service_notification(service_id, options = {}) ⇒ Object
- #delete_service_notification(service_id, notification_id, options = {}) ⇒ Object
- #update_service_notification(service_id, notification_id, options = {}) ⇒ Object
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, = {}) post_request("/services/#{service_id}/notifications", { namespace: :notification, params: { notification: } }) 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, = {}) 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, = {}) put_request("/services/#{service_id}/notifications/#{notification_id}", { namespace: :notification, params: { notification: } }) end |