Sha256: 205e0ec6499af48c42b7f74effbd8c7b338972e402aa191a8dc27d1428773f89

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

require 'sidekiq'

module WatCatcher
  class SidekiqPoster
    include Sidekiq::Worker

    def perform(url, params)
      HTTPClient.post_content(url,
                              body: params["wat"].merge({"app_env" => ::Rails.env.to_s}).to_json,
                              header: {"Content-Type" => "application/json; charset=utf-8"})
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wat_catcher-0.1.0 lib/wat_catcher/sidekiq_poster.rb