class BrickFTP::RESTfulAPI::ListNotifications

List all notifications

@see developers.files.com/#list-all-notifications List all notifications

Public Instance Methods

call() click to toggle source

Returns a list of all notifications on the current site.

@return [Array<BrickFTP::Types::Notification>] Notifications

# File lib/brick_ftp/restful_api/list_notifications.rb, line 17
def call
  res = client.get('/api/rest/v1/notifications.json')

  res.map { |i| BrickFTP::Types::Notification.new(**i.symbolize_keys) }
end