Class: OneSignal::Commands::BaseCommand

Inherits:
Object
  • Object
show all
Includes:
SimpleCommand
Defined in:
lib/onesignal/commands/base_command.rb

Instance Method Summary collapse

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


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

def call
  raise NotImplementedError, 'this is an abstract class'
end

#clientObject



14
15
16
# File 'lib/onesignal/commands/base_command.rb', line 14

def client
  @client ||= OneSignal::Client.new(config.app_id, config.api_key, config.api_url)
end

#configObject



18
19
20
# File 'lib/onesignal/commands/base_command.rb', line 18

def config
  OneSignal.config
end