rb_wunderground 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rb_wunderground/base.rb +4 -2
- data/lib/rb_wunderground/version.rb +1 -1
- metadata +1 -1
data/lib/rb_wunderground/base.rb
CHANGED
@@ -20,14 +20,16 @@ module RbWunderground
|
|
20
20
|
|
21
21
|
FEATURES.each do |name|
|
22
22
|
define_method(name) do |arg|
|
23
|
-
url =
|
23
|
+
url = ""
|
24
|
+
url << base_url << name << "/q/" << arg << format
|
24
25
|
fetch_result(url)
|
25
26
|
end
|
26
27
|
end
|
27
28
|
|
28
29
|
def method_missing(name, *args, &block)
|
29
30
|
if name =~ /^history_(.+)$/ || name =~ /^planner_(.+)$/
|
30
|
-
url =
|
31
|
+
url = ""
|
32
|
+
url << base_url << name.to_s << "/q/" << args[0] << format
|
31
33
|
fetch_result(url)
|
32
34
|
else
|
33
35
|
super
|