Class: BrickFTP::RESTfulAPI::ListNotifications
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::ListNotifications
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/list_notifications.rb
Overview
List all notifications
Instance Method Summary collapse
-
#call ⇒ Array<BrickFTP::Types::Notification>
Returns a list of all notifications on the current site.
Methods included from Command
Instance Method Details
#call ⇒ Array<BrickFTP::Types::Notification>
Returns a list of all notifications on the current site.
17 18 19 20 21 |
# 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 |