Sha256: 22b942febcae3ff7fb3cac473fb37061e918fc46317d467ec562dc9b1c53d84a

Contents?: true

Size: 322 Bytes

Versions: 20

Compression:

Stored size: 322 Bytes

Contents

require 'sidekiq'

module WatCatcher
 class SidekiqPoster
    include Sidekiq::Worker

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wat_catcher-0.8.2 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.8.1 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.8.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.7.2 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.7.1 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.7.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.6.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.5 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.4 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.3 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.2 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.1 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.5.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.4.1 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.4.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.3.2 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.3.1 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.3.0 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.2.4 lib/wat_catcher/sidekiq_poster.rb
wat_catcher-0.2.3 lib/wat_catcher/sidekiq_poster.rb