Class: ProconBypassMan::PostCompletedRemoteActionJob
- Extended by:
- HasExternalApiSetting
- Defined in:
- lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
Class Method Summary collapse
Methods included from HasExternalApiSetting
Methods included from Background::JobPerformable
Class Method Details
.path ⇒ Object
12 13 14 15 |
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_action_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
5 6 7 8 9 10 |
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_action_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_failed ⇒ Object
17 18 19 |
# File 'lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb', line 17 def self.re_enqueue_if_failed true end |