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