Class: Cangaroo::PushJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/cangaroo/push_job.rb

Instance Method Summary collapse

Methods inherited from Job

#payload, #source_connection, #type

Methods included from LoggerHelper

#job_tags

Instance Method Details

#performObject



3
4
5
# File 'app/jobs/cangaroo/push_job.rb', line 3

def perform(*)
  restart_flow(connection_request)
end

#perform?Boolean

Returns:

  • (Boolean)


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

def perform?
  fail NotImplementedError
end

#transformObject



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

def transform
  { type.singularize => payload }
end