Sha256: 91136c26c94e32fcc515595c76db588b719110cfd964ca3e40cdc365684a21c9
Contents?: true
Size: 591 Bytes
Versions: 1
Compression:
Stored size: 591 Bytes
Contents
module GatticaTest DEFAULT_AUTH = { :email => 'seerinteractive@gmail.com', :password => '4461goal', :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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
songphi-gattica-0.5.3 | test/settings.rb |