ttsttb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -5
- data/lib/ttsttb.rb +1 -1
- data/lib/ttsttb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c64ead79b53e522b03905ca4201eb0ca0aae343dbe1b651403bc59c5eae83faf
|
4
|
+
data.tar.gz: '03760922b03c8179709651a8a0fe8e8f30c9c6907a9993550f217923bc050cbb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cced5dc5b6220ea62e8f161ff49ae513cb0a78c40411dc76305db86a3f49f69ef921f8899095492a1ddba141f1cdac71aaffd652ed67602274e3efa7675b0cb1
|
7
|
+
data.tar.gz: 36567e5174a43ea6878cfe1792eea0fdd9cfdcbeaddf231109fc04b49e2fddc5744891bca2197fc505fc591dd45f8d36852716ce291d88bc987b945fa1ef947b
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# TTS TTB library
|
2
2
|
|
3
|
-
|
3
|
+
[TTS and TTB value of Forex](http://www.murc-kawasesouba.jp/fx/past_3month.php) is provided by MUFG. Major information provider of TTS and TTB is MUFG in Japan but the data is not provided by commonly used data format like CSV and JSON to handle by program for ease.
|
4
|
+
|
5
|
+
I created Ruby gem to get the TTS and TTB corresponding to the passed date. You can get hash of currency code key and value of TTS and TTB.
|
6
|
+
|
7
|
+
__Caution__ : This library has no test and exception handling is not tested to cover all the source data.
|
4
8
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
9
|
|
7
10
|
## Installation
|
8
11
|
|
@@ -22,9 +25,18 @@ Or install it yourself as:
|
|
22
25
|
|
23
26
|
## Usage
|
24
27
|
|
28
|
+
- Common error
|
29
|
+
- `find` method throws `OpenURI::HTTPRedirect` exception if data source is not found.
|
30
|
+
|
25
31
|
```ruby
|
26
|
-
%
|
27
|
-
irb(main):
|
32
|
+
% bin/console
|
33
|
+
irb(main):001:0> require 'pp'
|
34
|
+
true
|
35
|
+
irb(main):001:0> require 'date'
|
36
|
+
true
|
37
|
+
irb(main):003:0> pp Ttsttb.find(Date.new(2018, 1, 7))['USD']['tts']
|
38
|
+
108.52
|
39
|
+
irb(main):004:0> pp Ttsttb.find(Date.new(2018, 1, 1)); nil
|
28
40
|
{"USD"=>
|
29
41
|
{"currency"=>{"en"=>"US Dollar", "ja"=>"米ドル"},
|
30
42
|
"code"=>"USD",
|
data/lib/ttsttb.rb
CHANGED
data/lib/ttsttb/version.rb
CHANGED