lib/barometer.rb in attack-barometer-0.5.0 vs lib/barometer.rb in attack-barometer-0.6.0
- old
+ new
@@ -7,10 +7,16 @@
require 'barometer/data'
require 'barometer/formats'
module Barometer
+ @@debug_mode = false
+ def self.debug; @@debug_mode; end;
+ def self.debug=(value); @@debug_mode = value; end;
+ def self.debug!; @@debug_mode = true; end;
+ def self.debug?; @@debug_mode; end;
+
@@google_geocode_key = nil
def self.google_geocode_key; @@google_geocode_key; end;
def self.google_geocode_key=(key); @@google_geocode_key = key; end;
# sometimes a query is used as is and never gets geocoded (ie zipcode)
@@ -22,9 +28,14 @@
#
@@force_geocode = false
def self.force_geocode; @@force_geocode; end;
def self.force_geocode=(value); @@force_geocode = value; end;
def self.force_geocode!; @@force_geocode = true; end;
+
+ @@enhance_timezone = false
+ def self.enhance_timezone; @@enhance_timezone; end;
+ def self.enhance_timezone=(value); @@enhance_timezone = value; end;
+ def self.enhance_timezone!; @@enhance_timezone = true; end;
# adjust the timeout used when interactind with external web services
#
@@timeout = 15
def self.timeout; @@timeout; end;