Sha256: 8d4ade252b2fcefa54ced5f27d02e54a28e4a773fa115cfdf1d748dd2d7bff6d
Contents?: true
Size: 302 Bytes
Versions: 13
Compression:
Stored size: 302 Bytes
Contents
class Rack::Tracker::Facebook < Rack::Tracker::Handler class Event < OpenStruct def write ['track', self.id, to_h.except(:id).compact].to_json end end self.position = :body def self.track(name, *event) { name.to_s => [event.last.merge('class_name' => 'Event')] } end end
Version data entries
13 entries across 13 versions & 1 rubygems