Module: BacklogKit::Client::Notification

Included in:
BacklogKit::Client
Defined in:
lib/backlog_kit/client/notification.rb

Instance Method Summary collapse

Instance Method Details

#get_notification_count(params = {}) ⇒ Object



8
9
10
# File 'lib/backlog_kit/client/notification.rb', line 8

def get_notification_count(params = {})
  get('notifications/count', params)
end

#get_notifications(params = {}) ⇒ Object



4
5
6
# File 'lib/backlog_kit/client/notification.rb', line 4

def get_notifications(params = {})
  get('notifications', params)
end

#mark_as_read_notification(notification_id) ⇒ Object



16
17
18
# File 'lib/backlog_kit/client/notification.rb', line 16

def mark_as_read_notification(notification_id)
  post("notifications/#{notification_id}/markAsRead")
end

#reset_already_read_notification_countObject



12
13
14
# File 'lib/backlog_kit/client/notification.rb', line 12

def reset_already_read_notification_count
  post('notifications/markAsRead')
end