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

Version Path
rack-tracker-1.13.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.12.1 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.12.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.11.2 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.11.1 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.11.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.10.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.9.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.8.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.7.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.6.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.5.0 lib/rack/tracker/facebook/facebook.rb
rack-tracker-1.4.0 lib/rack/tracker/facebook/facebook.rb