Module: Tacokit::Client::Notifications

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/notifications.rb

Instance Method Summary collapse

Instance Method Details

#notification(notification_id, options = nil) ⇒ Object

Retrieve a notification


7
8
9
# File 'lib/tacokit/client/notifications.rb', line 7

def notification(notification_id, options = nil)
  get notification_path(notification_id), options
end

#update_notification(notification_id, options = {}) ⇒ Object

Update read/unread status of notification


14
15
16
# File 'lib/tacokit/client/notifications.rb', line 14

def update_notification(notification_id, options = {})
  put notification_path(notification_id), options
end