Class: Cangaroo::Job

Inherits:
ActiveJob::Base
  • Object
show all
Includes:
LoggerHelper
Defined in:
app/jobs/cangaroo/job.rb

Direct Known Subclasses

BaseJob

Instance Method Summary collapse

Methods included from LoggerHelper

#job_tags

Instance Method Details

#payloadObject



19
20
21
# File 'app/jobs/cangaroo/job.rb', line 19

def payload
  arguments.first.fetch(:payload)
end

#perform?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/jobs/cangaroo/job.rb', line 7

def perform?
  fail NotImplementedError
end

#source_connectionObject



11
12
13
# File 'app/jobs/cangaroo/job.rb', line 11

def source_connection
  arguments.first.fetch(:source_connection)
end

#typeObject



15
16
17
# File 'app/jobs/cangaroo/job.rb', line 15

def type
  arguments.first.fetch(:type)
end