Class: Cased::Publishers::HTTPPublisher

Inherits:
Base
  • Object
show all
Defined in:
lib/cased/publishers/http_publisher.rb

Instance Method Summary collapse

Methods inherited from Base

#==

Instance Method Details

#publish(audit_event) ⇒ Object



8
9
10
11
12
# File 'lib/cased/publishers/http_publisher.rb', line 8

def publish(audit_event)
  Cased.clients.publish.post do |req|
    req.body = JSON.generate(audit_event)
  end
end