File: push.rb

package info (click to toggle)
ruby-rack-google-analytics 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 164 kB
  • ctags: 48
  • sloc: ruby: 287; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 197 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "active_support/json"

module GoogleAnalytics
  class Push

    def initialize(attributes)
      @attributes = attributes
    end

    def write
      @attributes.to_json
    end
  end
end