simple_weather 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_weather.rb +5 -3
- metadata +1 -1
data/lib/simple_weather.rb
CHANGED
@@ -76,15 +76,17 @@ module SimpleWeather
|
|
76
76
|
@@conditions['weather']['current_conditions']['wind_condition']['attributes']['data']
|
77
77
|
end
|
78
78
|
|
79
|
+
def getLocation
|
80
|
+
|
79
81
|
def getData
|
80
82
|
data = {}
|
81
|
-
data['icon_url'] = getImageUrl
|
82
83
|
data['conditon'] = getCondition
|
83
|
-
data['temp_f'] = getTemp_f
|
84
84
|
data['temp_c'] = getTemp_c
|
85
|
+
data['temp_f'] = getTemp_f
|
86
|
+
data['icon_url'] = getImageUrl
|
87
|
+
data['location'] = 'College Park'
|
85
88
|
data
|
86
89
|
end
|
87
90
|
end
|
88
91
|
end
|
89
|
-
|
90
92
|
# ActionView::Base.send(:include, SimpleWeather) if defined?(ActionView::Base)
|