simple_weather 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/simple_weather.rb +5 -0
  2. metadata +2 -2
@@ -80,8 +80,13 @@ module SimpleWeather
80
80
  @@conditions['weather']['forecast_information']['city']['attributes']['data']
81
81
  end
82
82
 
83
+ def getTime
84
+ @@conditions['weather']['forecast_information']['current_date_time']['attributes']['data']
85
+ end
86
+
83
87
  def getData
84
88
  data = {}
89
+ data['time'] = getTime
85
90
  data['condition'] = getCondition
86
91
  data['temp_c'] = getTemp_c.to_f
87
92
  data['temp_f'] = getTemp_f.to_f
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.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-13 00:00:00.000000000 Z
12
+ date: 2012-08-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple weather gem
15
15
  email: ye.yicheng123@gmail.com