Sha256: 5f6cb3cb74b39b72937f1f4a596cdbad70bb6d284437d72d146af98f50cb06e2

Contents?: true

Size: 291 Bytes

Versions: 17

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require 'cased/publishers/base'

module Cased
  module Publishers
    class HTTPPublisher < Base
      def publish(audit_event)
        Cased.clients.publish.post do |req|
          req.body = JSON.generate(audit_event)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cased-ruby-0.8.0 lib/cased/publishers/http_publisher.rb
cased-ruby-0.7.1 lib/cased/publishers/http_publisher.rb
cased-ruby-0.7.0 lib/cased/publishers/http_publisher.rb
cased-ruby-0.6.1 lib/cased/publishers/http_publisher.rb
cased-ruby-0.5.2 lib/cased/publishers/http_publisher.rb
cased-ruby-0.5.1 lib/cased/publishers/http_publisher.rb
cased-ruby-0.5.0 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.8 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.7 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.6 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.5 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.4 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.3 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.2 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.1 lib/cased/publishers/http_publisher.rb
cased-ruby-0.4.0 lib/cased/publishers/http_publisher.rb
cased-ruby-0.3.3 lib/cased/publishers/http_publisher.rb