Class: OneSignal::Commands::FetchNotifications
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- OneSignal::Commands::FetchNotifications
- Defined in:
- lib/onesignal/commands/fetch_notifications.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(page_limit, page_offset, kind) ⇒ FetchNotifications
constructor
A new instance of FetchNotifications.
Methods inherited from BaseCommand
Constructor Details
#initialize(page_limit, page_offset, kind) ⇒ FetchNotifications
Returns a new instance of FetchNotifications.
6 7 8 9 10 |
# File 'lib/onesignal/commands/fetch_notifications.rb', line 6 def initialize page_limit, page_offset, kind @page_limit = page_limit @page_offset = page_offset @kind = kind end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/onesignal/commands/fetch_notifications.rb', line 12 def call client.fetch_notifications page_limit: @page_limit, page_offset: @page_offset, kind: @kind end |