Sha256: fe4c93e8cb393f6c961f40f5aa0cc142227f4796f78b1392b4b64c947390b439

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 Bytes

Contents

module BacklogKit
  class Client
    module Notification
      def get_notifications(params = {})
        get('notifications', params)
      end

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

      def reset_already_read_notification_count
        post('notifications/markAsRead')
      end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
backlog_kit-0.12.1 lib/backlog_kit/client/notification.rb
backlog_kit-0.12.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.11.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.10.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.9.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.8.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.7.0 lib/backlog_kit/client/notification.rb
backlog_kit-0.6.0 lib/backlog_kit/client/notification.rb