Sha256: 8fb03cefa1422cadf6dcf387cb151816977fddf7532d17c09a73bf3702e2808a

Contents?: true

Size: 478 Bytes

Versions: 16

Compression:

Stored size: 478 Bytes

Contents

class ProconBypassMan::SyncDeviceStatsJob < ProconBypassMan::BaseJob
  extend ProconBypassMan::HasExternalApiSetting

  # @param [Symbol] status
  def self.perform(status)
    ProconBypassMan::SendDeviceStatsHttpClient.new(
      path: path,
      server: api_server,
    ).post(status: status, pbm_session_id: ProconBypassMan.session_id)
  end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb