Class: OneSignal::Commands::FetchNotifications

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/onesignal/commands/fetch_notifications.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#client, #config

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

#callObject



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