Sha256: 4bbd2d4e23b813ccc5be146022fc5295c2e16c8279fd81b834cc870523bbb088
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
require 'omnihooks' require 'multi_json' module OmniHooks module Strategies class ClickFunnels include OmniHooks::Strategy option :name, 'click-funnels' event do raw_info end event_type do entity = raw_info.keys.first "#{entity}_#{raw_info['event']}" end private def raw_info @raw_info ||= MultiJson.decode(request.body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omnihooks-click-funnels-0.2.0 | lib/omnihooks/strategies/click_funnels.rb |
omnihooks-click-funnels-0.1.0 | lib/omnihooks/strategies/click_funnels.rb |