Class: ProconBypassMan::PostCompletedRemoteMacroJob

Inherits:
BaseJob
  • Object
show all
Extended by:
HasExternalApiSetting
Defined in:
lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb

Class Method Summary collapse

Methods included from HasExternalApiSetting

api_server

Methods included from Background::JobPerformable

#perform, #perform_async

Class Method Details

.pathObject



12
13
14
15
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb', line 12

def self.path
  device_id = ProconBypassMan.device_id
  "/api/devices/#{ProconBypassMan.device_id}/completed_pbm_remote_macro_jobs"
end

.perform(job_id) ⇒ Object

Parameters:

  • status (Symbol)


5
6
7
8
9
10
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb', line 5

def self.perform(job_id)
  ProconBypassMan::RemoteMacroHttpClient.new(
    path: path,
    server: api_server,
  ).post(job_id: job_id)
end

.re_enqueue_if_failedObject



17
18
19
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb', line 17

def self.re_enqueue_if_failed
  true
end