Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

forgot one file.

  • Loading branch information...
commit ad9bf95a0eae98dc2e81df926d962d3aac181760 1 parent 8356083
Chris Le authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 test/settings.rb
View
28 test/settings.rb
@@ -0,0 +1,28 @@
+module GatticaTest
+
+ DEFAULT_AUTH = {
+ :email => 'name@email.com',
+ :password => 'password',
+ :debug => true
+ }
+ DEFAULT_QUERY = {
+ :start_date => '2010-01-01',
+ :end_date => '2011-01-01',
+ :dimensions => ['date'],
+ :metrics => ['visits']
+ }
+ PROFILE_ID = 23987717
+
+ def self.ga(options={}, profile_id=PROFILE_ID)
+ unless defined? @ga
+ @ga = Gattica.new(DEFAULT_AUTH)
+ @ga.profile_id = profile_id
+ end
+ @ga
+ end
+
+ def self.get(options={}, profile_id=PROFILE_ID)
+ ga.get(DEFAULT_QUERY.merge(options))
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.