Sha256: 86565ba468687ca779499b14e46a9928c3dde3c0d7d439144683b1332e1a87e0

Contents?: true

Size: 273 Bytes

Versions: 8

Compression:

Stored size: 273 Bytes

Contents

module GaEvents
  class Event < Struct.new(:category, :action, :label, :value)
    def initialize(category, action, label = nil, value = nil)
      super
      GaEvents::List << self
    end

    def to_s
      [category, action, label, value].join('|')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ga_events-0.1.7 lib/ga_events/event.rb
ga_events-0.1.6 lib/ga_events/event.rb
ga_events-0.1.5 lib/ga_events/event.rb
ga_events-0.1.4 lib/ga_events/event.rb
ga_events-0.1.3 lib/ga_events/event.rb
ga_events-0.1.2 lib/ga_events/event.rb
ga_events-0.1.1 lib/ga_events/event.rb
ga_events-0.1.0 lib/ga_events/event.rb