Sha256: 321b7e5d5a0e4d03e46910b46bb1f077427b28c7e5a0f1107dbf720a5329408f

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
readmedia-gattica-0.6.2.1 test/settings.rb
chrisle-gattica-0.6.3 test/settings.rb
betapond-gattica-0.5.2 test/settings.rb
betapond-gattica-0.5.1 test/settings.rb