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