Module: Gattica::Settings

Defined in:
lib/gattica/settings.rb

Constant Summary collapse

USE_SSL =
true
SSL_PORT =
443
NON_SSL_PORT =
80
TIMEOUT =
100
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{ == != =~ !~ =@ ~@ }