lib/weatherhacks.rb in weatherhacks-0.1.1 vs lib/weatherhacks.rb in weatherhacks-0.2.0
- old
+ new
@@ -1,6 +1,15 @@
module WeatherHacks
+ module Version #:nodoc:
+ MAJOR = 0
+ MINOR = 2
+ TINY = 0
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ end
+ VERSION = Version::STRING
+
module ForecastMap
class Area
attr_reader :name, :rss, :prefs
def initialize(name, rss)
@name = name
@@ -53,6 +62,13 @@
end
end
require "weatherhacks/lwws"
require "weatherhacks/forecastmap"
-require "weatherhacks/version"
+
+module WeatherHacks
+ module_function
+
+ def lwws(city, day = :all)
+ LWWS.request(city, day)
+ end
+end