Class: ScoutApm::BackgroundJobIntegrations::DelayedJob

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/background_job_integrations/delayed_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



4
5
6
# File 'lib/scout_apm/background_job_integrations/delayed_job.rb', line 4

def logger
  @logger
end

Instance Method Details

#forking?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/scout_apm/background_job_integrations/delayed_job.rb', line 14

def forking?
  false
end

#nameObject



6
7
8
# File 'lib/scout_apm/background_job_integrations/delayed_job.rb', line 6

def name
  :delayed_job
end

#present?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/scout_apm/background_job_integrations/delayed_job.rb', line 10

def present?
  defined?(::Delayed::Job) && (File.basename($0) =~ /\Adelayed_job/)
end