Class: OneSignal::Commands::CreateNotification

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

Instance Method Summary collapse

Methods inherited from BaseCommand

#client, #config

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

#callObject



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

def call
  client.create_notification @notification
end