Sha256: 0fb23bdcbf9f33d355637fcae88e431da82d5588f65c1b9f9b3c04ff4f8a195a
Contents?: true
Size: 464 Bytes
Versions: 51
Compression:
Stored size: 464 Bytes
Contents
require 'flydata-core/event/flydata_event_sender' require 'flydata-core/event/flydata_event' require 'singleton' module FlydataCore module Event class ApiEventSender <FlydataEventSender include Singleton protected def send(event, routing_key=nil) #TODO async when async api code is pushed Flydata::ApiClient.instance.post("/events/process",{:headers => {:content_type => :json}}, event.to_json) end end end end
Version data entries
51 entries across 51 versions & 1 rubygems