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.
Files changed (2) hide show
  1. data/lib/simple_weather.rb +5 -3
  2. metadata +1 -1
@@ -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'] = 'College Park'
89
+ data['location'] = getLocation
88
90
  data
89
91
  end
90
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: