Class: Optimizely::EventDispatcher
- Inherits:
-
Object
- Object
- Optimizely::EventDispatcher
- Defined in:
- lib/optimizely/event_dispatcher.rb
Constant Summary collapse
- REQUEST_TIMEOUT =
10
Instance Method Summary collapse
Instance Method Details
#dispatch_event(url, params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/optimizely/event_dispatcher.rb', line 7 def dispatch_event(url, params) # Dispatch the event being represented by the Event object. # # url - URL to send impression/conversion event to. # params - Params to be sent to the impression/conversion event. HTTParty.get(url, query: params, timeout: REQUEST_TIMEOUT) rescue Timeout::Error => e return e end |