Class: ProconBypassMan::SyncDeviceStatsJob
- Extended by:
- HasExternalApiSetting
- Defined in:
- lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
Class Method Summary collapse
Methods included from HasExternalApiSetting
Methods inherited from BaseJob
Methods included from Background::JobPerformable
Class Method Details
.path ⇒ Object
12 13 14 15 |
# File 'lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb', line 12 def self.path device_id = ProconBypassMan.device_id "/api/devices/#{ProconBypassMan.device_id}/device_statuses" end |
.perform(status) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb', line 5 def self.perform(status) ProconBypassMan::SendDeviceStatsHttpClient.new( path: path, server: api_server, ).post(status: status, pbm_session_id: ProconBypassMan.session_id) end |