Module: Gattica::Settings
- Defined in:
- lib/gattica/settings.rb
Constant Summary collapse
- SERVER =
Google server to connect to
You may need to change this if you use a proxy server. However, I have not tested using a proxy.… YMMV
'www.google.com'
- USE_SSL =
Use a secure connection?
If set to true, Gattica will use SSL_PORT or else it will use NON_SSL_PORT.
Example:
- USE_SSL = true
-
# Always use a secure connection
true
- SSL_PORT =
443
- NON_SSL_PORT =
80
- TIMEOUT =
Net::HTTP timeout in seconds
Increase the timeout setting if you have over 100 profiles.
Example:
- TIMEOUT = 300
-
# Increase timeout to 5 minutes.
300
- DEFAULT_ARGS =
{ :start_date => nil, :end_date => nil, :dimensions => [], :metrics => [], :filters => [], :sort => [] }
- DEFAULT_OPTIONS =
{ :email => nil, # eg: '[email protected]' :password => nil, # eg: '$up3r_$ekret' :token => nil, :profile_id => nil, :debug => false, :headers => {}, :logger => Logger.new(STDOUT) }
- FILTER_METRIC_OPERATORS =
%w{ == != > < >= <= }
- FILTER_DIMENSION_OPERATORS =
%w{ == != =~ !~ =@ ~@ }