Class: OneSignal::Commands::FetchPlayer

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

Instance Method Summary collapse

Methods inherited from BaseCommand

#client, #config

Constructor Details

#initialize(player_id) ⇒ FetchPlayer

Returns a new instance of FetchPlayer.



6
7
8
# File 'lib/onesignal/commands/fetch_player.rb', line 6

def initialize player_id
  @player_id = player_id
end

Instance Method Details

#callObject



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

def call
  client.fetch_player @player_id
end