Module: GoogleApi

Defined in:
lib/google_api.rb,
lib/google_api/cache.rb,
lib/google_api/ga/ga.rb,
lib/google_api/ga/data.rb,
lib/google_api/version.rb,
lib/google_api/ga/session.rb,
lib/google_api/configuration.rb,
lib/google_api/session/session.rb,
lib/google_api/shorten/session.rb,
lib/google_api/shorten/shorten.rb,
lib/google_api/shorten/url/get.rb,
lib/google_api/shorten/url/url.rb,
lib/google_api/ga/data/data_dsl.rb,
lib/google_api/shorten/url/list.rb,
lib/google_api/ga/management/goal.rb,
lib/google_api/shorten/url/insert.rb,
lib/google_api/ga/data/filters_dsl.rb,
lib/google_api/ga/data/segment_dsl.rb,
lib/google_api/ga/management/account.rb,
lib/google_api/ga/management/profile.rb,
lib/google_api/ga/management/segment.rb,
lib/google_api/session/session_methods.rb,
lib/google_api/ga/management/management.rb,
lib/google_api/ga/management/webproperty.rb

Defined Under Namespace

Modules: Ga, Shorten Classes: Cache, CanBeNilError, Configuration, DateError, GaError, RequireError, Session, SessionError, SessionMethods, ShortenError, TypeError

Constant Summary collapse

CONFIGURATION =

Global configuration

{
  ga:      Configuration.new(Ga::CONFIGURATION),
  shorten: Configuration.new(Shorten::CONFIGURATION)
}
VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.configObject



30
31
32
# File 'lib/google_api.rb', line 30

def self.config
  @config ||= Configuration.new(CONFIGURATION)
end

.configure(&block) ⇒ Object



34
35
36
# File 'lib/google_api.rb', line 34

def self.configure(&block)
  config.instance_eval(&block)
end