Sha256: 04f03f462743ebb16829d0ea6c0fd0e7bbfa871e779e4d4895eaae2bcd8943f3
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 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 def self.from_string(str) new(*str.split('|')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ga_events-0.2.0 | lib/ga_events/event.rb |