Class: OneSignal::Commands::FetchNotification
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- OneSignal::Commands::FetchNotification
- Defined in:
- lib/onesignal/commands/fetch_notification.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(notification_id) ⇒ FetchNotification
constructor
A new instance of FetchNotification.
Methods inherited from BaseCommand
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
#call ⇒ Object
10 11 12 |
# File 'lib/onesignal/commands/fetch_notification.rb', line 10 def call client.fetch_notification @notification_id end |