simple_weather 0.1.2 → 0.1.3
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
@@ -77,14 +77,16 @@ module SimpleWeather
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def getLocation
|
80
|
+
@@condition['weather']['forecast_information']['city']['attributes']['data']
|
81
|
+
end
|
80
82
|
|
81
83
|
def getData
|
82
84
|
data = {}
|
83
85
|
data['conditon'] = getCondition
|
84
|
-
data['temp_c'] = getTemp_c
|
85
|
-
data['temp_f'] = getTemp_f
|
86
|
+
data['temp_c'] = getTemp_c.to_f
|
87
|
+
data['temp_f'] = getTemp_f.to_f
|
86
88
|
data['icon_url'] = getImageUrl
|
87
|
-
data['location'] =
|
89
|
+
data['location'] = getLocation
|
88
90
|
data
|
89
91
|
end
|
90
92
|
end
|