Class: Rack::Tracker::GoogleAnalytics::Parameter

Inherits:
OpenStruct
  • Object
show all
Includes:
JavaScriptHelper
Defined in:
lib/rack/tracker/google_analytics/google_analytics.rb

Constant Summary

Constants included from JavaScriptHelper

JavaScriptHelper::JS_ESCAPE_MAP

Instance Method Summary collapse

Methods included from JavaScriptHelper

#escape_javascript

Methods inherited from OpenStruct

#to_h

Instance Method Details

#writeObject



56
57
58
# File 'lib/rack/tracker/google_analytics/google_analytics.rb', line 56

def write
  ['set', self.to_h.to_a].flatten.map { |v| %Q{'#{j(v)}'} }.join ', '
end