Class: IntegrationPal::Worker

Inherits:
ApplicationRecord show all
Includes:
ActiveModel
Defined in:
app/models/integration_pal/worker.rb

Instance Method Summary collapse

Instance Method Details

#generate_api_keyObject



15
16
17
# File 'app/models/integration_pal/worker.rb', line 15

def generate_api_key
  ApiAuth.generate_secret_key
end

#job_classObject



24
25
26
# File 'app/models/integration_pal/worker.rb', line 24

def job_class
  self.job_type.constantize
end