Class: OneSignal::Commands::DeletePlayer

Inherits:
BaseCommand show all
Defined in:
lib/onesignal/commands/delete_player.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#client, #config

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

#callObject



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

def call
  client.delete_player @player_id
end