softbank-healthcare-client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb45006e64cfa4683d156ab652092a927e31806f
4
- data.tar.gz: 41ad81341cb8ab3ae5c8457ec745b3f0896ba453
3
+ metadata.gz: 254e73b97d70e4e7fe894eff5fa55b6db01bd3ac
4
+ data.tar.gz: 947017914b111c5691d7587a140450e59f8ea605
5
5
  SHA512:
6
- metadata.gz: 147f60d139b8197afb98777bcd51fb5e518c685277efca7ca5013390832572e72c98bb6fd57b231a495a0224156040a5da5ef52fd09d31be1256f80cbeec4f30
7
- data.tar.gz: 5818ab3141b378ac4c03abc873094090a385ac308ff0df3ed77cc4276b2dfa1a39d248d5c762ef598b205b7121b20890cd1823feaefb3e707f04902b93a3f692
6
+ metadata.gz: e9cf92ec72e0e2aa779eea44197a21112b71eeec2abf80d27a29ec023d46763843b3af39656ed752ae38ff8a96195c1af7996c91184de7671c2c4ecd1b7e1100
7
+ data.tar.gz: a3623c287718e33a0b30e3b7a90ab6cd8f48f2bff39f1277d5a9500fc9ed0409596306c5613bfc0eef86a5fd3646c912b98649332bcac30b17a5effaa1c5107a
data/README.md CHANGED
@@ -44,9 +44,16 @@ client.visceral_fat_level # 内臓脂肪レベル
44
44
  client.water_content # 水分量 (%)
45
45
  ```
46
46
 
47
+ if you want fetch yesterday data, you can set date.
48
+
49
+ ```ruby
50
+ client.date = Date.today - 1
51
+ client.weight
52
+ ```
53
+
47
54
  ## Contributing
48
55
 
49
- 1. Fork it ( http://github.com/<my-github-username>/healthcare/fork )
56
+ 1. Fork it ( http://github.com/shunirr/softbank-healthcare-client-ruby/fork )
50
57
  2. Create your feature branch (`git checkout -b my-new-feature`)
51
58
  3. Commit your changes (`git commit -am 'Add some feature'`)
52
59
  4. Push to the branch (`git push origin my-new-feature`)
@@ -8,8 +8,12 @@ module SoftBankHealthCare
8
8
  refresh
9
9
  end
10
10
 
11
- def refresh
12
- @summary = @api.home_summary['root']
11
+ def date=(v)
12
+ refresh v
13
+ end
14
+
15
+ def refresh(date = Date.today)
16
+ @summary = @api.home_summary(date)['root']
13
17
  end
14
18
 
15
19
  def weight
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module SoftBankHealthCare
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softbank-healthcare-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - shunirr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler