Class: OneSignal::Commands::FetchNotification

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

Instance Method Summary collapse

Methods inherited from BaseCommand

#client, #config

Constructor Details

#initialize(notification_id) ⇒ FetchNotification

Returns a new instance of FetchNotification.



6
7
8
# File 'lib/onesignal/commands/fetch_notification.rb', line 6

def initialize notification_id
  @notification_id = notification_id
end

Instance Method Details

#callObject



10
11
12
# File 'lib/onesignal/commands/fetch_notification.rb', line 10

def call
  client.fetch_notification @notification_id
end