Class: Mixpanelable::Adapters::ResqueWorker
- Inherits:
-
Object
- Object
- Mixpanelable::Adapters::ResqueWorker
- Defined in:
- lib/mixpanelable/adapters/resque_adapter.rb
Class Method Summary collapse
Class Method Details
.perform(event, properties) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/mixpanelable/adapters/resque_adapter.rb', line 14 def self.perform(event, properties) params = {"event" => event, "properties" => properties} data = Base64.strict_encode64(JSON.generate(params)) request = "http://api.mixpanel.com/track/?data=#{data}" `curl -s '#{request}'` end |