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

Version Path
flydata-0.8.10.2 lib/flydata/event/api_event_sender.rb
flydata-0.8.10.1 lib/flydata/event/api_event_sender.rb
flydata-0.8.9.11 lib/flydata/event/api_event_sender.rb
flydata-0.8.10 lib/flydata/event/api_event_sender.rb
flydata-0.8.9 lib/flydata/event/api_event_sender.rb
flydata-0.8.8 lib/flydata/event/api_event_sender.rb
flydata-0.8.7 lib/flydata/event/api_event_sender.rb
flydata-0.8.6 lib/flydata/event/api_event_sender.rb
flydata-0.8.5 lib/flydata/event/api_event_sender.rb
flydata-0.8.4 lib/flydata/event/api_event_sender.rb
flydata-0.8.3 lib/flydata/event/api_event_sender.rb
flydata-0.8.2 lib/flydata/event/api_event_sender.rb
flydata-0.8.1 lib/flydata/event/api_event_sender.rb
flydata-0.8.0 lib/flydata/event/api_event_sender.rb
flydata-0.7.19 lib/flydata/event/api_event_sender.rb
flydata-0.7.18 lib/flydata/event/api_event_sender.rb
flydata-0.7.17 lib/flydata/event/api_event_sender.rb
flydata-0.7.16 lib/flydata/event/api_event_sender.rb
flydata-0.7.15 lib/flydata/event/api_event_sender.rb
flydata-0.7.14 lib/flydata/event/api_event_sender.rb